-
|
Hi, I'm trying to figure out what would be the best approach to start a wayland compositor (in my case, niri) with some background services (for example, swaybg). Ideally, packaging it and installing in system directories ( My best thought was having a I want the directory to be writable by the user, but the problem here is that waits-for.d does not support variable substitution (and as far as I understand, it is not planned), so I can't set it to something like Is there another approach that is preferred? Should I consider implementing variable substitution for directory paths? (Or at least implement paths relative to home directory - Thanks for the advice. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi. I personally run my background apps with dinit. Here's my list ( I run
I think the use of variable substitution for this, having a simple base for desktop sessions, is reasonable. Process supervision and service management are really helpful for having a more robust system. Supervision is useful to make sure DE wouldn't collapse because a daemon died. The supervisor tries to restart the program for this purpose. Supervisor also makes managing daemons easier because it provides an interface to start/stop/restart a daemon or even send signals to it without using |
Beta Was this translation helpful? Give feedback.
-
Just to be clear, those background services would likely need
I think you mean that you are not aware of plans to support it, rather than that you are aware that it is not planned? (If the latter, where does that information come from - do I need to update some documentation somewhere?) It wasn't specifically planned, though I have some (as yet vague) plans to make service configuration more consistent.
That would likely be fairly straight-forward to do, and I have no objection. Another option working right now is that the service description file for |
Beta Was this translation helpful? Give feedback.
Just to be clear, those background services would likely need
depends-on: nirifor this to work correctly (and would also require that niri use some suitable readiness notification, for example). Trying to start something which needs a compositor running at the same time as that compositor is still starting up will likely cause problems.