summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xriver/init5
1 files changed, 3 insertions, 2 deletions
diff --git a/river/init b/river/init
index d0cc4e4..3a5faf8 100755
--- a/river/init
+++ b/river/init
@@ -11,8 +11,9 @@ export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export VDPAU_DRIVER=radeonsi
export LIBVA_DRIVER_NAME=radeonsi
-dbus-update-activation-environment XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE
-systemctl --user import-environment XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE
+systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE
+hash dbus-update-activation-environment 2>/dev/null && \
+ dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE
# Input methods
riverctl keyboard-layout -model pc105awide -options ctrl:nocaps,ctrl:swap_lalt_lctl_lwin,ctrl:swap_rwin_rctl vlom