Running Syncthing from inside Toolbx
2 min read •
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.
Note
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]
Start Syncthing
File synchronization
.
Starts the main syncthing process in the background/usr/bin/toolbox run syncthing serve --no-browser --logfile=default
syncthing
false
Application
synchronization;daemon;
P2P
Network;FileTransfer;
It’s available at http://127.0.0.1:8384 just like on normal installation.
By the way, turns out that Toolbx website got a refresh, and it looks really nice, check it out.
Comments
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.