How to configue and autolaunch a polkit agent (Kde)


This is a micro-guide to configure a polkit agent on Arch Linux.


  1. Download a polkit manager (I chose the Kde one):

    pacman -S polkit-kde-agent

  2. it creates a xdg .desktop entry in /etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop

  3. dex is needeed to autolaunch xdg entries:

    pacman -S dex

  4. Add the command to an autolaunch script. Since I use bspwm I will add it to its coonfig file:

    echo "dex -a /etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop" >> .config/bspwm/bspwmrc