Authentication agent and i3wm

How does one turn on an authentication agent like Polkit when using the i3 window manager? I would like to get a password prompt whenever I try to launch an application that requires certain root privileges.


Solution 1:

It seems that I was able to solve it myself. I installed the following Polkit related packages on my Ubuntu system using apt-get:

  • policykit-desktop-privileges
  • policykit-1-gnome.

Then I added the following to my i3 config file:

exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &