diff options
Diffstat (limited to '.config/sway/xdpw')
| -rwxr-xr-x[-rw-r--r--] | .config/sway/xdpw | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/.config/sway/xdpw b/.config/sway/xdpw index 05ce594..72449c7 100644..100755 --- a/.config/sway/xdpw +++ b/.config/sway/xdpw @@ -1,8 +1,7 @@ -#!/bin/sh -# Import the WAYLAND_DISPLAY env var from sway into the systemd user session. -dbus-update-activation-environment --systemd \ - XDG_SESSION_TYPE=wayland DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway +# sway does not set XDG_CURRENT_DESKTOP in the systemd user environment +# therfore xdg-desktop-portal makes the wrong choice for desktop witht this fix + +dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway -# Stop any services that are running, so that they receive the new env var when they restart. systemctl --user stop pipewire wireplumber xdg-desktop-portal xdg-desktop-portal-wlr systemctl --user start wireplumber |
