The Gnome Polkit authenticator Opens on different workspace instead of opening in the Current Workspace.
Which Gnome service replaces polkit-gnome-authentication-agent-1?
linux mint - polkit-gnome-authentication-agent-1 doesn't auto start after upgrade - Unix & Linux Stack Exchange
Gnome polkit, keyring on startup
I'm using gnome polkit for my hyprland setup in fedora 40. For some reason if I open something which needs sudo access for the first time. The polkit always opens itself in the first workspace instead of current workspace I'm working on, this behavior really annoys me to the core. Is this a bug, or I need to add something in my config to make it work properly.
In my fedora, the polkit is in this location:
exec-once = /usr/libexec/polkit-gnome-authentication-agent-1
I had same problem on Ubuntu 18.04 after installing xfce4.
The problem was that no PolicyKit Authentication Agent was installed - or at least not one that xfce recognised.
The solution is to install one:
$ sudo apt install policykit-1-gnome
That's it.
.
That installed the package: /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1.
It seemed to update the autostart list.
It was necessary to restart. Because running the file from terminal didn't work. Someone had written somewhere to run it from an xterm. I had run it from the terminal emulator that comes default in Ubuntu and is still default after installing xfce: gnome terminal.
There is such a thing as 'xfce-polkit' and 'xfce-polkit-git'.
But Debian reports, in it's account of the package policykit-1-gnome, that xfce still uses the gnome polkit agent:
This implementation was originally designed for GNOME 2, but most GNOME-based desktop environments, including GNOME 3, GNOME Flashback, and MATE, have their own built-in PolicyKit agents and no longer use this one. The remaining users of this implementation are Cinnamon, XFCE and Unity.
Other accounts of this problem:
http://lovingthepenguin.blogspot.com/2016/10/fixing-packagekit-authentication-in.html https://fransdejonge.com/2017/01/fix-no-gksudo-permissions-prompt-on-gparted-synaptic-mounting-drives-etc-in-debian/
Problem was due to /proc mount option hidepid. Mint 17.3 to 18 changed the init system to systemd and systemd has no support for hidepid.