sway: fix screen sharing

This commit is contained in:
Johannes Loher 2021-04-27 13:16:46 +02:00
parent d5457351d1
commit e7b4daa928
4 changed files with 16 additions and 1 deletions

View file

@ -50,5 +50,6 @@
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"redhat.telemetry.enabled": false
}

View file

@ -327,3 +327,8 @@ exec_always {
gsettings set $gnome-schema cursor-theme 'Adwaita'
gsettings set $gnome-schema font-name '$font_family $gtk_font_size'
}
# ------------------------------------------------------------------------------
# xdg-desktop-portal
# ------------------------------------------------------------------------------
exec /home/loherj/.local/bin/fix_xdg_desktop_portal_sharing.sh

View file

@ -0,0 +1,8 @@
#!/bin/bash
# Import the WAYLAND_DISPLAY env var from sway into the systemd user session.
dbus-update-activation-environment --systemd 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 pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
systemctl --user start pipewire-media-session

View file

@ -1,3 +1,4 @@
export XDG_CURRENT_DESKTOP=sway
export MOZ_ENABLE_WAYLAND=1
export CLUTTER_BACKEND=wayland
export QT_QPA_PLATFORM=wayland-egl