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
This commit is contained in:
JL2210 2024-08-19 08:57:13 -04:00 committed by GitHub
parent 37e8cf0d14
commit aaf4cd1e51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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`. Our recommendation is the KDE one. For arch, it's `polkit-kde-agent`.
You can autostart it with You can autostart it with
`exec-once=/usr/lib/polkit-kde-authentication-agent-1`. On some distributions `exec-once=systemctl --user start plasma-polkit-agent`.
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`.
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 necessary to use
`exec-once=/usr/lib64/libexec/polkit-kde-authentication-agent-1` instead. `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 ### Qt Wayland Support
_Starting method:_ none (just a library) _Starting method:_ none (just a library)