dotfiles/.local/bin/fix_xdg_desktop_portal_sharing.sh

9 lines
431 B
Bash
Raw Normal View History

2021-04-27 13:16:46 +02:00
#!/bin/bash
# Import the WAYLAND_DISPLAY env var from sway into the systemd user session.
2022-08-20 11:46:31 +02:00
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway
2021-04-27 13:16:46 +02:00
# 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