-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Support systemd syncthing system service together with user service #52
Comments
In the documentation of Syncthing Icon, i.e. the file Speaking for myself, I don't need such a feature and I don't have much time left right now to implement it. However, I am sincerely grateful for pull requests. So if you want to work on it, go ahead. |
You are right. It is a feature request. I understand that fully supporting the system service mode in addition to the user service is quite some work, but maybe a compromise solution would be something like "if syncthing is already running and the user service is not, do not worry who started it, just use the instance already running and disable the on/off switch". I am not really a programmer myself and I am not familiar with the language syncthing icon is written in, but I may eventually give it a try. |
Describe the bug
The syncthing icon extension does not work or behaves wrongly when syncthing has been set up as a system service as in the docs. Either of these may happen:
Screenshots
![Captura de pantalla de 2020-03-06 09-57-04](https://user-images.githubusercontent.com/3829672/76068462-7e2d0e00-5f91-11ea-8319-559f84673001.png)
Version information:
gnome-shell --version
GNOME Shell 3.28.4gjs --version
gjs 1.52.5Possible solutions
Make syncthing icon to check if syncthing is configured as a system service for the user (by checking the status of [email protected]) and disable the on/off switch in that case, but still connect to the syncthing service if running.
Even better, if syncthing is configured as a system service, use the on/off switch to start/stop the system service instead of the user service (the user must be and admin to use this).
Even better: include an option so the user can select to run syncthing as a system service (only if admin) or a user service like now.
Logs
The text was updated successfully, but these errors were encountered: