Polkit does not work

That path is not quite right. Did you get any error message when you ran it? The path should be like this:

/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &

You can add it to your config.py file so it starts automatically with Qtile, as described here: https://github.com/qtile/qtile/issues/1264

You need an authentication agent (v. https://wiki.archlinux.org/index.php/Polkit#Authentication_agents).

In Arch Linux ou can write an autostart.sh file, if you have polkit-gnome installed, like this:

#! /bin/bash
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & # Graphical authentication agent

Don’t forget chmod +x autostart.sh.

Then put this at your config.py file:

##### STARTUP PROGRAMS ##### 
@hook.subscribe.startup_once 
def start_once(): 
     home = os.path.expanduser("~") 
     subprocess.call([home + "/.config/qtile/autostart.sh"])

You need to import os for this python code.

Then, when Qtile start, the authentication agent will start too (and all programs you call at your autostart.sh file, like a compositor, a wallpaper setter et cetera).

3 Likes