zocker-160 / SyncThingy

SyncThingy = Syncthing + simple tray indicator
GNU General Public License v3.0
116 stars 1 forks source link

Ubuntu 22.04 - Syncthingy Wont Stay running #12

Closed trymeouteh closed 1 year ago

trymeouteh commented 1 year ago

I have changed the permissions and even clicked the Reset button in Flatseal. No matter what I do, when I launch Syncthingy, it will run for about 30 seconds to a minute, never connects to another device and then Syncthing and Syncthingy will shutdown.

$ flatpak run com.github.zocker_160.SyncThingy
Gtk-Message: 13:21:19.106: Failed to load module "canberra-gtk-module"
Gtk-Message: 13:21:19.106: Failed to load module "canberra-gtk-module"
Qt: Session management error: None of the authentication protocols specified are supported
running inside Flatpak 

Using Icon: "com.github.zocker_160.SyncThingy"
/app/bin/syncthing
Requesting background permission...
Background / Autostart permission revoked
zocker-160 commented 1 year ago

Yes because the Flatpak does not have the permission to run in the background, which causes the application to be killed by the system after a minute or so.

It says it in the logs:

Background / Autostart permission revoked

In order to make this work, you need a working background portal, which on Ubuntu is part of the xdg-desktop-portal and xdg-desktop-portal-kde or xdg-desktop-portal-gtk packages.

Those need to be installed and running.

trymeouteh commented 1 year ago

Seems to be working now. Also had to enable background permissions in Flatseal

zocker-160 commented 1 year ago

nice, glad to hear!

CestQuoiUnPseudo commented 11 months ago

Same problem, installed from the Pop!_Shop, would run for a minute then stop. Changing permission (Portals -> Background) in Flatseal fixed it! Thanks for the program @zocker-160!

zocker-160 commented 11 months ago

Yeah I sadly do not know why this happens, usually when running the application for the first time, the background portal should show a popup message asking the user to grant the permission to run in the background.