I am using Syncthing for quite some time now and for my own personal needs I have written a tiny shell extension for Gnome 3.
It can be found at this GitHub repository. If you are using Gnome 3, please give it a try.
It features a small symbolic Syncthing icon that opens a menu with
an on/off switch for starting/stopping Syncthing by utilizing systemd
It is the other way round; when you start syncthing-inotify.service it pulls syncthing.service as a dependency. When you stop syncthing.service unfortunately syncthing-inotify.service keeps running and fails. Since the inotify watcher is an optional âadd onâ, it makes sense that we do not touch syncthing.service.
I was thinking about sth. like this:
# stop; pseudocode
if (systemctl --user is-active syncthing-inotify.service) && (systemctl --user is-enabled syncthing-inotify.service); then
systemctl --user stop syncthing-inotify.service
fi
# start; pseudocode
if (systemctl --user is-enabled syncthing-inotify.service); then
systemctl --user start syncthing-inotify.service
fi
Otherwise syncthing-inotify.service keeps staying in a strange state when you stop syncthing.service.
edit:
This Problem seems to be fixed now⌠I just tested it again:
GLib.FileError: Failed to open file '/home/stefan/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/schemas/gschemas.compiled': open() failed: No such file or directory
Stack trace:
getSettings@/home/stefan/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/convenience.js:82
SyncthingIconPrefsWidget<._init@/home/stefan/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/prefs.js:38
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
buildPrefsWidget@/home/stefan/.local/share/gnome-shell/extensions/syncthingicon@jay.strict@posteo.de/prefs.js:52
Application<._selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:95
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Application<._onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:259
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
main@resource:///org/gnome/shell/extensionPrefs/main.js:397
@<main>:1