From dec297b92b9776d96f8df90909e022ab4d5ac8e0 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 23 Nov 2023 16:22:50 -0600 Subject: [PATCH] fix(hypr): launch polkit from hyprland, not systemd --- dots/.config/hypr/hyprland.conf | 1 + dots/.config/systemd/user/polkit.service | 16 ---------------- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 dots/.config/systemd/user/polkit.service diff --git a/dots/.config/hypr/hyprland.conf b/dots/.config/hypr/hyprland.conf index 3078070d..27e48fdd 100644 --- a/dots/.config/hypr/hyprland.conf +++ b/dots/.config/hypr/hyprland.conf @@ -18,3 +18,4 @@ 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 +exec-once = /usr/lib/polkit-kde-authentication-agent-1 diff --git a/dots/.config/systemd/user/polkit.service b/dots/.config/systemd/user/polkit.service deleted file mode 100644 index ab2b96c8..00000000 --- a/dots/.config/systemd/user/polkit.service +++ /dev/null @@ -1,16 +0,0 @@ -[Unit] -Description=KDE PolicyKit Authentication Agent -PartOf=compositor.target -After=compositor.target - -[Service] -ExecStart=/usr/lib/polkit-kde-authentication-agent-1 -ExecStop=kill -HUP $MAINPID -ExecCondition=/bin/sh -c "[ -n $WAYLAND_DISPLAY ]" -Slice=background.slice -BusName=org.kde.polkit-kde-authentication-agent-1 -TimeoutSec=5sec -Restart=on-failure - -[Install] -WantedBy=compositor.target