[Pkg-xfce-devel] Bug#842378: Xfce needs a policykit authentication agent

Hartmut Buhrmester hbuhrmester-01 at t-online.de
Wed Jul 12 04:01:07 UTC 2017


The virtual package, which is provided by all policykit authentication 
agents, is now "polkit-1-auth-agent":

hb1 at debian:~$ aptitude show polkit-1-auth-agent
No candidate version found for polkit-1-auth-agent
Package: polkit-1-auth-agent
State: not a real package
Provided by: gnome-flashback (3.22.0-3), gnome-shell (3.22.3-3),
              lxpolkit (0.5.3-2), lxqt-policykit (0.11.1-1),
              mate-polkit (1.16.0-2), policykit-1-gnome (0.105-6),
              polkit-kde-agent-1 (4:5.8.4-1)


A new dependency for Thunar could then be:

thunar recommends lxpolkit|polkit-1-auth-agent

But since the XDG autostart file for lxpolkit is effectively disabled by 
adding "Hidden=true", thunar would have to provide an own autostart 
file. It could be defined as /etc/xdg/autostart/xfpolkit.desktop with 
the contents:

[Desktop Entry]
Type=Application
Name=LXPolKit for XFCE
Comment=Policykit Authentication Agent
Exec=lxpolkit
TryExec=lxpolkit
Icon=gtk-dialog-authentication
OnlyShowIn=XFCE;


Or, for the canonical solution, you could add the recommendation:

thunar recommends policykit-1-gnome|polkit-1-auth-agent

The file /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop 
is already configured for XFCE (but surprisingly not for GNOME):

OnlyShowIn=XFCE;Unity;X-Cinnamon;


I would add this dependency to Thunar, because the package thunar 
already recommends gvfs, and that uses policykit for authorization.

-- 
Regards,
Hartmut Buhrmester



More information about the Pkg-xfce-devel mailing list