Hi everyone!
I launch a bash script from a systemd service. In order to run GUI apps in the script I set two environment variables in the service: DISPLAY and XAUTHORITY.
It works fine with KDE and X11.
But with Gnome and Wayland it doesn't work. If I set the XAUTHORITY variable with the value given by "printenv" it only works during the on-going session, but not after reboot. This value changed.
I've tried to set the WAYLAND_DISPLAY variable with no success.
Should I set other variables?
Thanks and Merry Christmas!
Sylvain
I launch a bash script from a systemd service. In order to run GUI apps in the script I set two environment variables in the service: DISPLAY and XAUTHORITY.
It works fine with KDE and X11.
But with Gnome and Wayland it doesn't work. If I set the XAUTHORITY variable with the value given by "printenv" it only works during the on-going session, but not after reboot. This value changed.
I've tried to set the WAYLAND_DISPLAY variable with no success.
Should I set other variables?
Thanks and Merry Christmas!
Sylvain
Statistics: Posted by sylvain_48 — 2023-12-23 18:00 — Replies 1 — Views 44