Skip to content
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

Add systemd user service #47

Open
gen2brain opened this issue Nov 16, 2024 · 1 comment
Open

Add systemd user service #47

gen2brain opened this issue Nov 16, 2024 · 1 comment

Comments

@gen2brain
Copy link

gen2brain commented Nov 16, 2024

I noticed that xdg-desktop-portal-wlr installs the user systemd service file, and it is running that instead of what is in Exec. This is much nicer for the user as I can check the status, restart the service, etc. I noticed d2ca009 and thought it may be better to just add user service like this one:

[Unit]
Description=Portal service (LXQt implementation)
PartOf=graphical-session.target
After=graphical-session.target

[Service]
Type=dbus
BusName=org.freedesktop.impl.portal.desktop.lxqt
ExecStart=/usr/libexec/xdg-desktop-portal-lxqt
Environment="QT_QPA_PLATFORMTHEME=lxqt"
Restart=on-failure

And then change the DBus service to:

[D-BUS Service]
Name=org.freedesktop.impl.portal.desktop.lxqt
Exec=/usr/libexec/xdg-desktop-portal-lxqt
SystemdService=xdg-desktop-portal-lxqt.service

So the user has more control over the service. What do you think?

@tsujan
Copy link
Member

tsujan commented Nov 16, 2024

@palinek?

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

No branches or pull requests

2 participants