You are not logged in.
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
Broken session or some environment.
Compare
tr '\0' '\n' < /proc/$(pidof rofi)/environfor either instance, check "loginctl session-status" and if you're using startx/xinit, see the last link below (and post your xinitrc)
Offline