summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortslil clingman <>2023-12-04 21:56:47 +0100
committertslil clingman <>2023-12-04 21:56:47 +0100
commitab5143152997770d1bd4419419aa839dc57c43f5 (patch)
tree118af2e940baa8e7e2fd53093d6882e31e36aeb4
parent84c9d8411cf1f50ef50caf0c15136534937ac12b (diff)
[river] magical systemd/dbus incantation
this fixes the irritating failure of xdg-desktop-portal which would otherwise delay the starting of certain gtk programmes by around 20sec
-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