Polkit extra actions: run useful graphical applications as root on Slackware

During my daily programming activities i have to run, as root, some applications, even if i am logged in as a normal user, which make use of a gui (most of the times based on gtk) and this can be a problem using pkexec program-name due to the default policy of Polkit that disable support for graphical environment.

To let me use applications as i need i have created a simple package (tested on slackware64-current) that adds to the system:

  • a specific polkit rule to allow Thunar to be run as root
  • a menu voice allow a normal user to execute Thunar as root using pkexec
  • a specific polkit rule to allow Mozilla Firefox to be run as root
  • a menu voice allow a normal user to execute Mozilla Firefox as root using pkexec
  • a specific polkit rule to allow Geany to be run as root
  • a menu voice allow a normal user to execute Geany as root using pkexec
  • a specific polkit rule to allow Xfce4 Terminal to be run as root
  • a menu voice allow a normal user to execute Xfce4 Terminal as root using pkexec

Download the package from here.

Leave a comment