Hey all, I’m new to Fedora & the atomic way of doing things but I’m loving the desktop experience however how to do things when it comes to background apps and terminal programs is a little more confusing to me. I want to run syncthing at startup to keep my pictures & documents synced with my home server so I thought I’d install it in a toolbox but I’m not sure how to go about having the app run at startup. Could anyone point me in the right direction or if there is a better way to do this?
Yes that’s the rpm-ostree way of installing it, I was more interested in doing things through toolbox since everything I’ve read says only do layering as a last resort.
You can execute toolbox run syncthing in a shell script.
toolbox run [options] <arg …>
Runs a command in a toolbox without entering it. Used without options, toolbox run runs the command in the default toolbox.
To run a command in a toolbox with specific name, use the --container <name> | -c <name> option.
Honestly, this is something that I would just layer with rpm-ostree. In a toolbox, it won’t auto-update, and this seems pretty security-sensitive. Any attempt to make it auto-update would be non-atomic (although it appears pretty self-contained, so that might not matter). There’s also the convenience of having the systemd units already set up.
A flatpak could probably cover your usecase, but that doesn’t exist.
There’s also an official docker image that could be used with podman.