add DISPLAY variables to systemd session

feat/kile-v2
Ricard Illa 2023-02-17 12:29:47 +01:00
parent 3b26ec85f9
commit 7bae0f5aa0
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
1 changed files with 3 additions and 2 deletions

View File

@ -179,8 +179,6 @@ in {
# Set app-ids and titles of views which should use client side decorations # Set app-ids and titles of views which should use client side decorations
${riverctl} csd-filter-add app-id "gedit" ${riverctl} csd-filter-add app-id "gedit"
${riverctl} spawn "${dbus-update-activation-environment} --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river"
${riverctl} spawn "systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river"
${configure-gtk}/bin/configure-gtk ${configure-gtk}/bin/configure-gtk
trackball_names="pointer-21298-5120-Clearly_Superior_Technologies._CST_Laser_Trackball 21298:5120:Clearly_Superior_Technologies._CST_Laser_Trackball" trackball_names="pointer-21298-5120-Clearly_Superior_Technologies._CST_Laser_Trackball 21298:5120:Clearly_Superior_Technologies._CST_Laser_Trackball"
@ -191,6 +189,9 @@ in {
${config.xdg.configHome}/river/init-kile ${config.xdg.configHome}/river/init-kile
export XDG_CURRENT_DESKTOP=river
${dbus-update-activation-environment} --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
systemctl --user start river-session.target systemctl --user start river-session.target
''; '';
}; };