-
Notifications
You must be signed in to change notification settings - Fork 15
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
systemd user service file #2
Comments
I don't think that using systemd is the correct way to run devilspie2, the main issue being that it should run when you login to your window manager which is not a systemd target. It should have a seperate instance for each session. |
Disclaimer: I don't know much systemd Could extend this feature request to be more implementation-agnostic - "run devilspie2 automatically", to consider other solutions like the autostart suggestion. @Longoon12000 I would think this has got to be a common enough condition for there to be a wm-agnostic set of unit constraints in systemd: "user has logged into an X session". It doesn't have to be just a single systemd this example seems to be installed as a root entry (
So what about a user service That said, I did this:
I could play around with a more generic solution. |
I'm using this:
installed in I start it as:
in .xsessionrc at the moment. I have a few widgets that have an After=devilspie2.service so startup order can be ensured without race conditions. A few outstanding problems that prevent this from being upstreamed:
But perhapss this could get some folks going without a perfect service file. This is on:
Without the environment variables I get:
|
Valid point re. desktop/wm autostart (so, presumably, XDG autostart). I've just pushed a commit which should allow for that. |
https://bugs.debian.org/933866
Being a Devuan user, I don't use systemd myself, so I'm in no position to add this. (I currently use Xfce4's application autostart to run devilspie2 on login.)
The text was updated successfully, but these errors were encountered: