A simple polkit replacement
Problems when installing polkit-dumb-agent
You need the package kdesu5
More on reddit.comWhat am I doing wrong with polkits?
Consider using polkit-dumb-agent
Hi! Im trying to install polkit-dumb-agent and its not working. It used to work fine a few weeks ago.
Every time i try installing it whether it is with aur helpers or manually i get an error like this:
Any help is appreciated!!
CMake Error at CMakeLists.txt:6 (find_package):
By not providing "FindKF5Su.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "KF5Su", but
CMake did not find one.
Could not find a package configuration file provided by "KF5Su" with any of
the following names:
KF5SuConfig.cmake kf5su-config.cmake
Add the installation prefix of "KF5Su" to CMAKE_PREFIX_PATH or set
"KF5Su_DIR" to a directory containing one of the above files. If "KF5Su"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'polkit-dumb-agent-git-r22.c6424b6-1':
error: packages failed to build: polkit-dumb-agent-git-r22.c6424b6-1
I don't know what am I doing wrong, but no matter what, I cant get any polkit to work properly. I'm on Debian 12, and I've tried these three polkits:
fpp@fpp-asus:~$ pgrep -l pol 52 edac-poller 649 polkitd fpp@fpp-asus:~$ /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 -- open gparted -- (polkit-gnome-authentication-agent-1:2430): GLib-GObject-WARNING **: 21:44:10.037: invalid cast from 'GdkWaylandScreen' to 'GdkX11Screen' (polkit-gnome-authentication-agent-1:2430): GLib-GObject-WARNING **: 21:44:10.037: invalid cast from 'GdkWindowImplWayland' to 'GdkWindowImplX11' (polkit-gnome-authentication-agent-1:2430): GLib-GObject-WARNING **: 21:44:10.037: invalid cast from 'GdkWaylandScreen' to 'GdkX11Screen' (polkit-gnome-authentication-agent-1:2430): GLib-GObject-WARNING **: 21:44:10.037: invalid cast from 'GdkWaylandDisplay' to 'GdkX11Display' polkit-agent-helper-1: pam_authenticate failed: Authentication failure Violación de segmento fpp@fpp-asus:~$ lxqt-policykit-agent QSocketNotifier: Can only be used with threads started with QThread "Icon Theme not set. Fallbacking to Oxygen, if installed" "Fallback Icon Theme (Oxygen) not found" New PolkitAgentListener 0x55e78d3072e0 Adding new listener PolkitQt1::Agent::Listener(0x7fff42367cc0) for 0x55e78d3072e0 -- open gparted -- Listener adapter polkit_qt_listener_initiate_authentication GSimpleAsyncResult: 0x55e78d3391e0 polkit_qt_listener_initiate_authentication callback for 0x55e78d3072e0 REQUEST qt.qpa.wayland: Wayland does not support QWindow::requestActivate() COMPLETED Listener adapter polkit_qt_listener_initiate_authentication_finish polkit_qt_listener_initiate_authentication_finish callback for 0x55e78d3072e0 -- gparted did not open --^C fpp@fpp-asus:~$ polkit-dumb-agent QSocketNotifier: Can only be used with threads started with QThread XDG_SESSION_ID "c2" is not a valid integer, defaulting to 1 -- open gparted -- -- nothing happens --^C
I honestly dont know what is wrong. I use Ly as my display manager. I've only once got lxqt-policykit-agent to work, but it wasnt on this computer, and it had the same issues as I have now, and some day it started working fine. Ideally, I would like to avoid having to use lxqt-policykit-agent, because I have Gnome installed, and I dont really like mixing different DE's packages... polkit-dumb-agent was my first choice, but I'm not completely sure if it works on wayland