-
Notifications
You must be signed in to change notification settings - Fork 1
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
playerctl cannot find player when using systemd service #4
Comments
The systemctl --status output seemed normal, except playerctl can't get any info about MPD Service started. |
Which DE/WM are you using? Also, are you running mpdris2-rs as root or as user service? |
Hyprland WM, running as user service |
Then you might need to import some environment variables into systemd to make it work. On my sway setup I do this: systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway |
This program performed flawlessly inside a terminal , however when using systemd service to run the program, playerctl can't find the mpd player, executing
playerctl status
only returns "No players found". I think it might be related to user bus, but I don't know how to solve it.System is Arch Linux, 6.1.8-arch1-1
The text was updated successfully, but these errors were encountered: