You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon logging in you often want to start a few services/daemons that need to keep running while sway is running. After sway has stopped you want those services to stop as well.
There are a few options for starting services:
With startup This seems to be the official approach for session management in sway. It seems like this would work OK, but the big issue here is that there is no documentation AFAIK, other than what's on the sway wiki. The project also seems to be unmaintained, since the last commit is more than a year old.
With systemd
This approach is officially NOT supported, however it seems to be the only one that has actual documentation and can stop processes when sway exits.
I think we either need more documentation for startup, or select another solution as the official one and promote it. I'm curious what others think about this issue.
The text was updated successfully, but these errors were encountered:
Wayland clients are supposed to quit when they get disconnected from the compositor.
Thanks, I didn't know that. This would solve the particular issue I had and probably most of these issues. I'm still curious if there might be edge cases.
I can think of a few:
An X11 client: will probably stop when xwayland stops
An non-graphical user client, for example darkman. This is a service that turns on dark mode at certain times by setting the GTK/QT system theme. This one might be an issue if you log out and log back in. Maybe it will start multiple times.
swayidle: I've had issues with this one when running sway inside a window for development. After closing sway, swayidle was still running. After a few minutes my system went to sleep because swayidle saw no input. This may be a swayidle issue though.
What is startup? I don't know about it, and there's nothing official about it.
My bad, I misinterpreted that then. Systemd is very clearly marked in the wiki as unofficial and startup, as the only alternative, was not.
Systemd is very clearly marked in the wiki as unofficial and startup, as the only alternative, was not.
Updated the wiki page to add a clear disclaimer. We don't officially support any service manager. Systemd just happens to be the service manager people open the most issues about.
Upon logging in you often want to start a few services/daemons that need to keep running while sway is running. After sway has stopped you want those services to stop as well.
There are a few options for starting services:
sway exec
The issue with this approach is that the service isn't automatically stopped when stopping sway. This is a dealbreaker for me, as this leads to very subtle issues like No notifications showing up after logging out and logging in. dunst-project/dunst#851.
startup
This seems to be the official approach for session management in sway.It seems like this would work OK, but the big issue here is that there is no documentation AFAIK, other than what's on the sway wiki. The project also seems to be unmaintained, since the last commit is more than a year old.systemd
This approach is officially NOT supported, however it seems to be the only one that has actual documentation and can stop processes when sway exits.
I think we either need more documentation for startup, or select another solution as the official one and promote it.I'm curious what others think about this issue.The text was updated successfully, but these errors were encountered: