diff options
| author | Don Williams <Don.e.williams@gmail.com> | 2026-08-15 17:56:25 -0400 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-08-29 21:41:34 -0700 |
| commit | f5897674f6f94d39499263a7dd21ffc667abd9ba (patch) | |
| tree | 1999bb306876f8ec6a61993e875c3620ae822d9f | |
| parent | e60c28e36ccb3178d4a4573d4c75dc4f0bda6f9e (diff) | |
Fixed Polkit to check for systemd service
Signed-off-by: Don Williams <Don.e.williams@gmail.com>
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: CHANGELOG.md
modified: config/hypr/scripts/Polkit.sh
| -rw-r--r-- | CHANGELOG.md | 3 | ||||
| -rwxr-xr-x | config/hypr/scripts/Polkit.sh | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b61d807..ade55f8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,9 @@ ## Fixed: +- `hyprpolkitagent` fails to start at login + - Patched `Polkit.sh` to check for systemd service + - It was trying to run the agent twice causing crash - Fixed `ChangeBlur.sh` to be compatible with LUA workflow - Waybar fix caused two waybars to start in Debian. Fixed the fix - waybar startup delayed in Fedora when not using `hyprland-uwsm` session diff --git a/config/hypr/scripts/Polkit.sh b/config/hypr/scripts/Polkit.sh index f09c9e1f..ac961165 100755 --- a/config/hypr/scripts/Polkit.sh +++ b/config/hypr/scripts/Polkit.sh @@ -12,6 +12,17 @@ if pgrep -u "$UID" -f 'xfce-polkit|polkit-gnome-authentication-agent-1|polkit-kd exit 0 fi +# If hyprpolkitagent is managed as a user service, defer to systemd. +# This avoids race conditions where both this script and systemd start an +# agent at the same time, which can trigger "authentication agent already exists" +# DBus registration errors on first login. +if command -v systemctl >/dev/null 2>&1; then + if systemctl --user list-unit-files 2>/dev/null | grep -q '^hyprpolkitagent\.service'; then + systemctl --user start hyprpolkitagent.service >/dev/null 2>&1 || true + exit 0 + fi +fi + # Ensure Qt apps default to Wayland in a Wayland session if [ -n "${WAYLAND_DISPLAY:-}" ] && [ -z "${QT_QPA_PLATFORM:-}" ]; then export QT_QPA_PLATFORM=wayland |
