I have installed syncthing on my Raspberry Pi but it does not start automatically.
How can I run it automatically after a reboot?
1 Answer
The folder /usr/share/applications
contains shortcuts to all installed programs.
All shortcuts which are copied to the folder /home/pi/.config/autostart
will be started automatically after a reboot.
The following command copies the needed shortcut to the autostart folder:
cp /usr/share/applications/syncthing-start.desktop /home/pi/.config/autostart
Hint: In my case I use the standard user pi
. If you use a different user name then you have to adopt it to /home/different-username