From aaf4cd1e51e6c26b1eac7368eff37020c33bb340 Mon Sep 17 00:00:00 2001 From: JL2210 Date: Mon, 19 Aug 2024 08:57:13 -0400 Subject: [PATCH] Use plasma-polkit-agent.service rather than launching directly (#750) * Use plasma-polkit-agent.service rather than launching directly This works regardless of where `polkit-kde-authentication-agent-1` is stored and also allows the service to be stopped if needed for whatever reason. Also change instructions to refer to different init systems rather than different locations for the executable. * forgot the period * added back alternative paths --- pages/Useful Utilities/Must-have.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pages/Useful Utilities/Must-have.md b/pages/Useful Utilities/Must-have.md index f94bdf8..eb7b362 100644 --- a/pages/Useful Utilities/Must-have.md +++ b/pages/Useful Utilities/Must-have.md @@ -57,16 +57,18 @@ password whenever an app wants to elevate its privileges. Our recommendation is the KDE one. For arch, it's `polkit-kde-agent`. You can autostart it with -`exec-once=/usr/lib/polkit-kde-authentication-agent-1`. On some distributions -you might have to use a different path which could be -`/ usr/libexec/polkit-kde-authentication-agent-1`, -`/usr/libexec/kf5/polkit-kde-authentication-agent-1`, or -`/usr/libexec/kf6/polkit-kde-authentication-agent-1`. +`exec-once=systemctl --user start plasma-polkit-agent`. -On other distributions that use a more recent version, such as Gentoo, it may be +On distributions that use a different init system, such as Gentoo, it may be necessary to use `exec-once=/usr/lib64/libexec/polkit-kde-authentication-agent-1` instead. +Other possible paths include +`/usr/lib/polkit-kde-authentication-agent-1`, +`/usr/libexec/polkit-kde-authentication-agent-1`, +`/usr/libexec/kf5/polkit-kde-authentication-agent-1`, and +`/usr/libexec/kf6/polkit-kde-authentication-agent-1`. + ### Qt Wayland Support _Starting method:_ none (just a library)