Skip to content

build: add systemd service #159

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

axelf4
Copy link

@axelf4 axelf4 commented Jul 31, 2025

Adds a systemd unit configuration file to be installed by CMake.

My motivation is being able to auto-start Quickshell on NixOS/niri with just the following module options:

systemd.packages = with pkgs; [ quickshell ];
systemd.user.services.quickshell.wantedBy = [ "niri.service" ];

A caveat is that the service PATH will be limited, meaning DesktopEntry.execute() will often not work directly.

C.f.: https://github.com/Alexays/Waybar/blob/0776e694df56c2c849b682369148210d81324e93/resources/waybar.service.in

Tangentially, it would be neat if an Exec= key got added to org.quickshell.desktop, so it could be placed in /etc/xdg/autostart.

@outfoxxed
Copy link
Member

I don't particularly like this because multiple configs are intended to be usable.

@axelf4
Copy link
Author

axelf4 commented Aug 1, 2025

Sure, but it could still be valuable as an example or starting point in that case, while being convenient for anyone who only uses their single own config. But if you disagree we will close this.

@Nicknamely
Copy link

I don't particularly like this because multiple configs are intended to be usable.

I tried to run quickshell as a service after migrating to UWSM, but I haven't been able to get it working. The config still runs fine from the CLI. See #166 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants