From 5fc7688def16f8e8c3f4470c2a85f4cfd5b2dd42 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 25 Feb 2026 12:12:25 -0600 Subject: fix(hyprland): add polkit agent, fix portal startup order, restrict ranger to DWM Launch polkit-kde-authentication-agent at startup. Restart backend portals (GTK, Hyprland) before the main xdg-desktop-portal to prevent 50s GTK settings proxy timeout. Make ranger DWM-only since Hyprland uses nautilus and dirvish. --- dotfiles/hyprland/.config/hypr/hyprland.conf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'dotfiles/hyprland/.config') diff --git a/dotfiles/hyprland/.config/hypr/hyprland.conf b/dotfiles/hyprland/.config/hypr/hyprland.conf index 12efa23..e03e18e 100644 --- a/dotfiles/hyprland/.config/hypr/hyprland.conf +++ b/dotfiles/hyprland/.config/hypr/hyprland.conf @@ -12,11 +12,13 @@ monitor=,preferred,auto,auto # ============================================================================ # Portal and D-Bus setup FIRST, then waybar (needs portal for appearance query) exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP HYPRLAND_INSTANCE_SIGNATURE -# Portal restart (not start) reconnects stale portals on Hyprland restart; waybar -# chained after so it doesn't block 25s waiting for a dead portal's appearance query -exec-once = systemctl --user restart xdg-desktop-portal-hyprland xdg-desktop-portal && waybar > ~/.local/var/log/waybar-$(date +%Y-%m-%d-%H%M%S).log 2>&1 +# Portal restart (not start) reconnects stale portals on Hyprland restart. +# Backend portals (GTK, Hyprland) must restart BEFORE the main portal to avoid +# a 50s GTK settings proxy timeout. Waybar starts after portals are ready. +exec-once = systemctl --user restart xdg-desktop-portal-hyprland xdg-desktop-portal-gtk && systemctl --user restart xdg-desktop-portal && waybar > ~/.local/var/log/waybar-$(date +%Y-%m-%d-%H%M%S).log 2>&1 # Core services +exec-once = /usr/lib/polkit-kde-authentication-agent-1 exec-once = /usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh exec-once = dunst > ~/.local/var/log/dunst-$(date +%Y-%m-%d-%H%M%S).log 2>&1 exec-once = hyprland-plugins-setup && sleep 1 && hyprctl dismissnotify -1 -- cgit v1.2.3