aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/PortalHyprland.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/scripts/PortalHyprland.sh')
-rwxr-xr-xconfig/hypr/scripts/PortalHyprland.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/config/hypr/scripts/PortalHyprland.sh b/config/hypr/scripts/PortalHyprland.sh
index 54ea71bb..e1ed2cae 100755
--- a/config/hypr/scripts/PortalHyprland.sh
+++ b/config/hypr/scripts/PortalHyprland.sh
@@ -120,12 +120,14 @@ restart_portal_via_systemd() {
done
systemctl --user start xdg-desktop-portal-hyprland.service >/dev/null 2>&1 || true
- if is_ubuntu_family; then
+ if command -v /usr/libexec/xdg-desktop-portal-gtk >/dev/null 2>&1 || command -v /usr/lib/xdg-desktop-portal-gtk >/dev/null 2>&1 || is_ubuntu_family; then
systemctl --user start xdg-desktop-portal-gtk.service >/dev/null 2>&1 || true
fi
+ systemctl --user start xdg-desktop-portal.service >/dev/null 2>&1 || true
for _ in $(seq 1 60); do
- if systemctl --user is-active --quiet xdg-desktop-portal-hyprland.service; then
+ if systemctl --user is-active --quiet xdg-desktop-portal-hyprland.service && \
+ systemctl --user is-active --quiet xdg-desktop-portal.service; then
return 0
fi
sleep 0.1
@@ -144,11 +146,9 @@ restart_portal_manually() {
sleep 2
- if is_ubuntu_family; then
- start_portal_binary "xdg-desktop-portal-gtk" \
- /usr/lib/xdg-desktop-portal-gtk \
- /usr/libexec/xdg-desktop-portal-gtk || true
- fi
+ start_portal_binary "xdg-desktop-portal-gtk" \
+ /usr/lib/xdg-desktop-portal-gtk \
+ /usr/libexec/xdg-desktop-portal-gtk || true
start_portal_binary "xdg-desktop-portal" \
/usr/lib/xdg-desktop-portal \
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage