Running Syncthing From Inside Toolbx

Today I wanted to reduce the amount of layered packages on my Silveblue install, sure thing it was easy to do, but there was one thing that wasn’t this easy, Syncthing.

The issue is that it needs to autostart on login, otherwise it’s useless. Autostart using the GNOME Tweaks from inside Toolbx didn’t work, because it points to the regular binary location instead of Toolbx.

There are a few solutions, and there’s also SyncThingy, but I wanted to have the original Syncthing and easy way of solving things; manually creating Podman container when we have Toolbx seemed like overengineering.

And so I backed up the ~/.config/autostart/syncthing-start.desktop before uninstalling the Syncthing overlay, located the Toolbx binary using whereis toolbox, replaced /usr/bin/syncthing in the backed up Syncthing desktop file with /usr/bin/toolbox run syncthing, put it back and logged out…

And it worked! Here’s the final contents of ~/.config/autostart/syncthing-start.desktop:

[Desktop Entry]
Name=Start Syncthing
GenericName=File synchronization
Comment=Starts the main syncthing process in the background.
Exec=/usr/bin/toolbox run syncthing serve --no-browser --logfile=default

syncthing web ui

It’s available at just like on normal installation.

By the way, turns out that Toolbx website got a refresh, and it looks really nice, check it out.

QR code to a Mastodon post


You can comment on this blog post by publicly replying to this post using a Mastodon or other ActivityPub/Fediverse account. Known non-private replies are displayed below.

Go to TopFile an Issue