You are not logged in.

#1 2022-04-02 11:34:13

Lluks
Member
Registered: 2021-03-24
Posts: 3

Rofi only triggers polkit when using terminal

I'm using arch linux with i3 and as application launcher I use rofi as dmenu replacement.
I currently use this launcher config https://github.com/adi1090x/rofi#application-launchers

The problem is that I cannot open applications which need root access. For example gparted. This behaviour isn't the case when I open the launcher within the terminal:

~/.config/rofi/launchers/misc/launcher.sh

When I do so, my polkit gets triggered and asks for password.
My rofi binding in the i3 config looks like this:

bindsym $mod+d exec --no-startup-id ~/.config/rofi/launchers/misc/launcher.sh

The actual command in  ~/.config/rofi/launchers/misc/launcher.sh looks like this:

rofi -no-lazy-grab -show drun -modi drun -theme ~/.config/rofi/launchers/misc/launchpad

Here is how I start my polkit within the i3 config file

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

Offline

#2 2022-04-02 13:37:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,256

Re: Rofi only triggers polkit when using terminal

Broken session or some environment.
Compare

tr '\0' '\n' < /proc/$(pidof rofi)/environ

for either instance, check "loginctl session-status" and if you're using startx/xinit, see the last link below (and post your xinitrc)

Offline

Board footer

Powered by FluxBB