🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.dev
Article #226

[gentoo-dev] [RFC] [PATCH 2/3] [effectively] gnome-extra/polkit-gnome: Use pkagent-autostart.eclass, disable autostart

#226
From: Andreas Sturmlechner
Date: Sun, 29 Nov 2026 19:30
96 lines
4717 bytes
--nextPartSHP9nuZSSzuVapthzhdl2Q
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Andreas Sturmlechner <asturm@gentoo.org>
To: gentoo-dev@lists.gentoo.org, freedesktop-bugs@gentoo.org
Date: Sun, 29 Nov 2026 20:26:56 +0100
Message-ID: <NUnsg5UzSjeIJkkIM2-ALA@gentoo.org>
In-Reply-To: <aTsa8Q3IT4ahLmug2F5phQ@gentoo.org>
References: <aTsa8Q3IT4ahLmug2F5phQ@gentoo.org>
MIME-Version: 1.0

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 <asturm@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


--nextPartSHP9nuZSSzuVapthzhdl2Q
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQIvBAABCgCZFiEE34gXUSooizdYNDu3S5FW4z0PgBkFAmsMfIAbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRERjg4MTc1MTJBMjg4QjM3NTgzNDNC
Qjc0QjkxNTZFMzNEMEY4MDE5AAoJEEuRVuM9D4AZP60L/2SF0dHxCrgzqamfZlxG
ajpW5/TY8FMabJEBtCf5yyHAkGs7134nFc/27qlR+JbcVPMYYSynPdL0uDvJkPFB
5LWLLKHR/MIG61G6aeTc5xaiVMe3RFMlgCesjb5j6bm+pQogPAYwG3ffa6uq61qx
50gGmvSZLjCRB/hxiopX634XFAzVG4Fc44hq8ojT2jYvC/OYgsl6jxS3hDX4aLFq
CTxnr0GVlM7E8C7qptx44swc+QWIpLrTwOsajvOgYBIKTiSt6MT2yKnnzS0w+09C
RcG8v24rA1uxNhuH15w+xvlxvpRSZDtI3Q1V3NDs4z2yje5vGbbkBHTMk8BLyLTE
comGaD7jZILeq2xJMlmn0tLseNK586vC8avtwvNvD/ngAiNTAz/PQNEt78XobW1m
Vj3IJCOktKls/jQwakGAmOQ5kK3LXRjPybMx0p5BrwFRxa13NjllWQNia2AW2BlJ
dLot/RtSPVeVGlbV5oKJwpXSE6Hn+f9hEeO3BMdczXmtvg==
=wdqo
-----END PGP SIGNATURE-----

--nextPartSHP9nuZSSzuVapthzhdl2Q--
Technical Details
Message-ID: <O4SKZ-eYzN-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <O4SKZ-eYzN-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Andreas Sturmlechner <asturm@gentoo.org>
Newsgroups: linux.gentoo.dev
Subject: [gentoo-dev] [RFC] [PATCH 2/3] [effectively] gnome-extra/polkit-gnome: Use pkagent-autostart.eclass, disable autostart
Date: Sun, 29 Nov 2026 20:30:01 +0100
Message-ID: <O4SKZ-eYzN-3@gated-at.bofh.it>
References: <O4SKZ-eYzN-5@gated-at.bofh.it>
List-ID: Gentoo Linux mail <gentoo-dev.gentoo.org>
Reply-To: gentoo-dev@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPartSHP9nuZSSzuVapthzhdl2Q";
 micalg="pgp-sha512"; protocol="application/pgp-signature"
Approved: robomod@news.nic.it
Lines: 96
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 29 Nov 2026 20:26:56 +0100
X-Original-Message-ID: <NUnsg5UzSjeIJkkIM2-ALA@gentoo.org>
X-Original-References: <aTsa8Q3IT4ahLmug2F5phQ@gentoo.org>