This package was made obsolete by its original inventors as well as any
offshoots. While the binary polkit-agent may be used by legacy envs,
referencing it via their own autostart desktop files, the shipped one
must ensure it does not get in the way of others.
But keep the desktop file for users w/ existing, modified versions of it.
Add manual setup notice elog.
Signed-off-by: Andreas Sturmlechner <astu…@gentoo.org>
---
* [effectively]: Relevant changes are shown here as diff, but will be introduced
as clean ~arch revbump, with stabilisation coordinated w/ xfce4-polkit.
--- a/gnome-extra/polkit-gnome/polkit-gnome-0.105-r2.ebuild
+++ b/gnome-extra/polkit-gnome/polkit-gnome-0.105-r3.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-inherit gnome.org
+inherit gnome.org pkagent-autostart
DESCRIPTION="A dbus session bus service that is used to bring up authentication dialogs"
HOMEPAGE="https://gitlab.freedesktop.org/polkit/polkit/"
@@ -25,20 +25,12 @@ DOCS=( AUTHORS HACKING NEWS README TODO )
src_install() {
default
+ make_pkagent_autostart_entry "" ${PN}
+}
- cat <<-EOF > "${T}"/polkit-gnome-authentication-agent-1.desktop
- [Desktop Entry]
- Name=PolicyKit Authentication Agent
- Comment=PolicyKit Authentication Agent
- Exec=/usr/libexec/polkit-gnome-authentication-agent-1
- Terminal=false
- Type=Application
- Categories=
- NoDisplay=true
- NotShowIn=MATE;KDE;
- AutostartCondition=GNOME3 if-session gnome-fallback
- EOF
-
- insinto /etc/xdg/autostart
- doins "${T}"/polkit-gnome-authentication-agent-1.desktop
+pkg_postinst() {
+ elog "${PN} no longer autostarts in random sessions and now requires manual setup."
+ elog "Pick your environment (must match DesktopNames value from XDG session file),"
+ elog "and set it via \"OnlyShowIn=<environment>;\" in place of \"Hidden=true\""
+ elog "inside /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop"
}
--
2.56.1