[Bug 281993] sysutils/polkit-gnome: add .desktop file for cinnamon only

[email protected]
Newsgroups gmane.os.freebsd.devel.gnome
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281993

--- Comment #4 from Pavel Timofeev <[email protected]> ---
(In reply to Gleb Popov from comment #3)
> How does this work on Linux?
On Linux it does work same way. https://wiki.archlinux.org/title/XDG_Autostart
I. e. no, not via standard service management. It's supposed to run a little
agent for a DE. Like this one to show graphical authentication request window
when more permissions required.
The only difference is where the .desktop files should be put. In our case it's
/usr/local/etc/xdg/autostart.

This is from running latest Linux Mint:

```
$ cat /etc/lsb-release 
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=22.1
DISTRIB_CODENAME=xia
DISTRIB_DESCRIPTION="Linux Mint 22.1 Xia"


$ dpkg -l | egrep 'pol.+gnome'
ii  policykit-1-gnome                          0.105-7ubuntu5                  
          amd64        authentication agent for PolicyKit


$ dpkg -L policykit-1-gnome
/.
/etc
/etc/xdg
/etc/xdg/autostart
/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
/usr
/usr/lib
/usr/lib/policykit-1-gnome
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
/usr/share
/usr/share/doc
/usr/share/doc/policykit-1-gnome
/usr/share/doc/policykit-1-gnome/AUTHORS
/usr/share/doc/policykit-1-gnome/NEWS.gz
/usr/share/doc/policykit-1-gnome/README
/usr/share/doc/policykit-1-gnome/TODO
/usr/share/doc/policykit-1-gnome/changelog.Debian.gz
/usr/share/doc/policykit-1-gnome/copyright


$ cat /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
[Desktop Entry]
Name=PolicyKit Authentication Agent
Comment=PolicyKit Authentication Agent
Exec=/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
Terminal=false
Type=Application
Categories=
NoDisplay=true
OnlyShowIn=XFCE;Unity;X-Cinnamon;
X-GNOME-AutoRestart=true
AutostartCondition=GNOME3 unless-session gnome
X-Ubuntu-Gettext-Domain=polkit-gnome-1
````



It's just for some reason the source archive itself doesn't include this file.



Example from debian: if we look inside debian package `plist` we can find the
same file. It's the first one in the list
https://packages.debian.org/bookworm/amd64/policykit-1-gnome/filelist

Next if you download a spec for debian package (like a port) at
http://deb.debian.org/debian/pool/main/p/policykit-1-gnome/policykit-1-gnome_0.105-8.debian.tar.xz
and extract it you'll see that they include very similar
debian/polkit-gnome-authentication-agent-1.desktop file separately. I. e. just
like I suggest.

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.