fix(hypr): ensure desktop portals run

This commit is contained in:
Price Hiller 2023-11-13 15:39:28 -06:00
parent 493423339c
commit 01b74367b5
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
2 changed files with 7 additions and 4 deletions

View File

@ -4,11 +4,8 @@ source = ~/.config/hypr/wm/bindings.conf
source = ~/.config/hypr/wm/appearance.conf source = ~/.config/hypr/wm/appearance.conf
source = ~/.config/hypr/wm/monitors.conf source = ~/.config/hypr/wm/monitors.conf
source = ~/.config/hypr/wm/window-rules.conf source = ~/.config/hypr/wm/window-rules.conf
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME
exec-once = ~/.config/hypr/scripts/launchers/events-monitor.bash exec-once = ~/.config/hypr/scripts/launchers/events-monitor.bash
exec-once = ~/.config/hypr/scripts/launchers/launch-waybar.bash exec-once = ~/.config/hypr/scripts/launchers/launch-waybar.bash
exec-once = ~/.config/hypr/scripts/launchers/launch-desktop-portal.bash
exec-once = mako --history 1 exec-once = mako --history 1
exec-once = udiskie --tray exec-once = udiskie --tray
exec-once = blueman-applet exec-once = blueman-applet
@ -18,3 +15,6 @@ exec = sleep 5 && opensnitch-ui --background
exec = systemd-run --user -u wallpaper-manager ~/.config/hypr/scripts/init-wallpapers.bash || systemctl --user restart wallpaper-manager exec = systemd-run --user -u wallpaper-manager ~/.config/hypr/scripts/init-wallpapers.bash || systemctl --user restart wallpaper-manager
exec-once = systemctl --user start compositor.target exec-once = systemctl --user start compositor.target
exec-once = xwaylandvideobridge exec-once = xwaylandvideobridge
exec = ~/.config/hypr/scripts/launchers/launch-desktop-portal.bash
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME GTK_THEME

View File

@ -3,6 +3,9 @@ sleep 1
killall -e xdg-desktop-portal-hyprland killall -e xdg-desktop-portal-hyprland
killall -e xdg-desktop-portal-wlr killall -e xdg-desktop-portal-wlr
killall xdg-desktop-portal killall xdg-desktop-portal
/usr/lib/xdg-desktop-portal-hyprland & /usr/lib/xdg-desktop-portal-hyprland --verbose &
sleep 2 sleep 2
/usr/lib/xdg-desktop-portal & /usr/lib/xdg-desktop-portal &
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
notify-send "Hyprland Desktop Portal" "Hyprland Desktop Portals Are Ready" -a "Hyprland"