Closed 2600box closed 5 months ago
Try as a user service? https://www.baeldung.com/linux/systemd-create-user-services
Try as a user service? https://www.baeldung.com/linux/systemd-create-user-services
Thanks, that works
Can you share your final working example?
Can you share your final working example?
I didn't try to minimise the config to see what environment parameters are actually required, but this works for me, at least for now:
# /etc/systemd/system/uxplay-mirror.service
[Unit]
Description=UxPlay Service for User
After=graphical.target
[Service]
Type=simple
Environment="XDG_RUNTIME_DIR=/run/user/$(id -u mirror)"
Environment="WAYLAND_DISPLAY=wayland-0"
Environment="DISPLAY=:0"
ExecStart=/usr/local/bin/uxplay -vs waylandsink -avdec -fs
[Install]
WantedBy=graphical.target
Hello,
trying to get this working as a systemd service.
via ssh, these two commands work for me:
however, when trying to replicate this with a systemd service, the window is not shown on screen.
This way my attempt at the service. Any idea what is missing?
Thanks!