From c0e44fbe3d585baa3df0d3eaf47a5d17154055c2 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 19 Aug 2023 12:11:38 -0500 Subject: [PATCH] refactor(hypr): run kde auth agent as polkit systemd user service --- dots/.config/.gitignore | 1 + dots/.config/hypr/hyprland.conf | 1 - dots/.config/systemd/user/.gitignore | 1 + dots/.config/systemd/user/polkit.service | 14 ++++++++++++++ 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 dots/.config/systemd/user/.gitignore create mode 100644 dots/.config/systemd/user/polkit.service diff --git a/dots/.config/.gitignore b/dots/.config/.gitignore index 477d1483..6739ba24 100644 --- a/dots/.config/.gitignore +++ b/dots/.config/.gitignore @@ -22,3 +22,4 @@ !stylua.toml !Trolltech.conf !dconf +!systemd diff --git a/dots/.config/hypr/hyprland.conf b/dots/.config/hypr/hyprland.conf index 6e6a040a..5c7b961d 100644 --- a/dots/.config/hypr/hyprland.conf +++ b/dots/.config/hypr/hyprland.conf @@ -9,7 +9,6 @@ exec-once = ~/.config/hypr/scripts/launchers/events-monitor.bash exec-once = udiskie --tray exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP -exec-once = /usr/lib/polkit-kde-authentication-agent-1 exec-once = blueman-applet exec-once = clight-gui --tray exec-once = opensnitch-ui --background diff --git a/dots/.config/systemd/user/.gitignore b/dots/.config/systemd/user/.gitignore new file mode 100644 index 00000000..900fd357 --- /dev/null +++ b/dots/.config/systemd/user/.gitignore @@ -0,0 +1 @@ +*.wants diff --git a/dots/.config/systemd/user/polkit.service b/dots/.config/systemd/user/polkit.service new file mode 100644 index 00000000..26d37b37 --- /dev/null +++ b/dots/.config/systemd/user/polkit.service @@ -0,0 +1,14 @@ +[Unit] +Description=KDE PolicyKit Authentication Agent +PartOf=graphical-session.target + +[Service] +ExecStart=/usr/lib/polkit-kde-authentication-agent-1 +ExecStop=kill -HUP $MAINPID +BusName=org.kde.polkit-kde-authentication-agent-1 +Slice=background.slice +TimeoutSec=5sec +Restart=on-failure + +[Install] +WantedBy=graphical-session.target