🌐
GitHub
github.com › sandsmark › polkit-dumb-agent
GitHub - sandsmark/polkit-dumb-agent: a polkit agent in 145 lines of code, because polkit is dumb and none of the other agents worked
a polkit agent in 145 lines of code, because polkit is dumb and none of the other agents worked - sandsmark/polkit-dumb-agent
Starred by 109 users
Forked by 6 users
Languages   C++ 58.0% | C 30.9% | CMake 11.1% | C++ 58.0% | C 30.9% | CMake 11.1%
🌐
GitHub
github.com › sandsmark › polkit-dumb-agent › issues
Issues · sandsmark/polkit-dumb-agent
a polkit agent in 145 lines of code, because polkit is dumb and none of the other agents worked - sandsmark/polkit-dumb-agent
Author   sandsmark
Discussions

A simple polkit replacement
Write a simple replacement for polkit itself, it's a simple dbus API and 90% of what it provides is never used. Yes, please do it! Polkit is really incredible piece of shit. I’d even try to arr... More on github.com
🌐 github.com
3
September 12, 2021
Problems when installing polkit-dumb-agent

You need the package kdesu5

More on reddit.com
🌐 r/linuxquestions
1
0
November 16, 2023
What am I doing wrong with polkits?
I use mate-polkit and start it in the sway config like so: exec /usr/lib/mate-polkit/polkit-mate-authentication-agent-1 arch btw. the package might be called different on debian. even tho thats a mate package, it doesn't have any mate packages as dependancy (at least on arch). More on reddit.com
🌐 r/swaywm
8
1
July 29, 2024
Consider using polkit-dumb-agent
Can we get Filer and FeatherPad to use polkit-dumb-agent so that it asks for the root password whenever it is needed? Blocked by: sandsmark/polkit-dumb-agent#5 More on github.com
🌐 github.com
0
December 8, 2021
🌐
GitHub
github.com › sandsmark › polkit-dumb-agent › blob › master › agent.cpp
polkit-dumb-agent/agent.cpp at master · sandsmark/polkit-dumb-agent
a polkit agent in 145 lines of code, because polkit is dumb and none of the other agents worked - sandsmark/polkit-dumb-agent
Author   sandsmark
🌐
GitHub
github.com › sandsmark › polkit-dumb-agent › issues › 4
A simple polkit replacement · Issue #4 · sandsmark/polkit-dumb-agent
September 12, 2021 - Write a simple replacement for polkit itself, it's a simple dbus API and 90% of what it provides is never used. Yes, please do it! Polkit is really incredible piece of shit. I’d even try to arr...
Author   sandsmark
🌐
GitHub
github.com › sandsmark › polkit-dumb-agent › blob › master › README.md
polkit-dumb-agent/README.md at master · sandsmark/polkit-dumb-agent
a polkit agent in 145 lines of code, because polkit is dumb and none of the other agents worked - sandsmark/polkit-dumb-agent
Author   sandsmark
🌐
GitHub
github.com › sandsmark › polkit-dumb-agent › blob › master › agent.h
polkit-dumb-agent/agent.h at master · sandsmark/polkit-dumb-agent
a polkit agent in 145 lines of code, because polkit is dumb and none of the other agents worked - sandsmark/polkit-dumb-agent
Author   sandsmark
🌐
GitHub
github.com › sandsmark › polkit-dumb-agent › blob › master › COPYING
polkit-dumb-agent/COPYING at master · sandsmark/polkit-dumb-agent
a polkit agent in 145 lines of code, because polkit is dumb and none of the other agents worked - sandsmark/polkit-dumb-agent
Author   sandsmark
🌐
Reddit
reddit.com › r/linuxquestions › problems when installing polkit-dumb-agent
r/linuxquestions on Reddit: Problems when installing polkit-dumb-agent
November 16, 2023 -

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

🌐
Reddit
reddit.com › r/swaywm › what am i doing wrong with polkits?
r/swaywm on Reddit: What am I doing wrong with polkits?
July 29, 2024 -

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

Top answer
1 of 3
2
I use mate-polkit and start it in the sway config like so: exec /usr/lib/mate-polkit/polkit-mate-authentication-agent-1 arch btw. the package might be called different on debian. even tho thats a mate package, it doesn't have any mate packages as dependancy (at least on arch).
2 of 3
1
Maybe there is something wrong when launching gparted? with lxqt-polkit-agent, doing pkexec on a terminal window succesfully grants me root acces. Same thing with mate-polkit. Also, tried to run an app that asks for root permission after its launched, and it all seems to work fine (tried with gnome printer settings). Whats funny is that on gnome (wayland) everything works fine, even launching gparted or nautilus with sudo, which makes them run under xwayland (verified with xeyes), and when launched from the app launcher, they run under wayland. I get this errors when launching gui apps with pkexec: fpp@fpp-asus:~$ pkexec nautilus ** Message: 23:49:49.016: Connecting to org.freedesktop.Tracker3.Miner.Files (org.gnome.Nautilus:6638): Gtk-WARNING **: 23:49:49.019: cannot open display: fpp@fpp-asus:~$ sudo nautilus ** Message: 23:50:13.593: Connecting to org.freedesktop.Tracker3.Miner.Files Authorization required, but no authorization protocol specified (org.gnome.Nautilus:6685): Gtk-WARNING **: 23:50:13.604: cannot open display: :0 fpp@fpp-asus:~$ sudo gparted Authorization required, but no authorization protocol specified (gpartedbin:6742): Gtk-WARNING **: 23:50:16.779: cannot open display: :0 fpp@fpp-asus:~$
Find elsewhere
🌐
GitHub
github.com › sandsmark › polkit-dumb-agent › issues › 3
Stat polkit agent when using startx? · Issue #3 · sandsmark/polkit-dumb-agent
Hi, I am using dwm and start it with startx. I was wondering how can I start this so when I need it it can authenticate? If I start it .xinitrc by polkit-dumb-agent & it only shows an auth dialog, but it is stuck in a loop if I try to authenticate until I cancel it.
Author   sandsmark
🌐
Srclog
srclog.com › polkit-dumb-agent
polkit-dumb-agent - how to download and setup
Also you may download zip file with polkit-dumb-agent https://github.com/sandsmark/polkit-dumb-agent/archive/master.zip Or simply clone polkit-dumb-agent with SSH
🌐
Reddit
reddit.com › r/linuxquestions › problemas al instalar polkit-dumb-agent
r/linuxquestions on Reddit: Problemas al instalar polkit-dumb-agent
November 16, 2023 - -- ¡Configuración incompleta, se produjeron errores! ==> ERROR: Se produjo un error en la compilación (). Abortando... error: no se pudo compilar 'polkit-dumb-agent-git-r22.c6424b6-1': error: los paquetes no se pudieron compilar: polkit-dumb-agent-git-r22.c6424b6-1
🌐
GitHub
github.com › sonnysighedup › polkit-dumb-agent › projects
Projects · polkit-dumb-agent · GitHub
sonnysighedup / polkit-dumb-agent Public forked from sandsmark/polkit-dumb-agent · Notifications · You must be signed in to change notification settings · Fork 0 · Star 0 · 0 open and 0 closed projects found.
🌐
GitHub
github.com › helloSystem › ISO › issues › 340
Consider using polkit-dumb-agent · Issue #340 · helloSystem/ISO
December 8, 2021 - Can we get Filer and FeatherPad to use polkit-dumb-agent so that it asks for the root password whenever it is needed? Blocked by: sandsmark/polkit-dumb-agent#5
Author   helloSystem
🌐
Repology
repology.org › project › polkit-dumb-agent › packages
polkit-dumb-agent packages - Repology
Summary: A polkit agent in 145 lines of code using Qt and libsystemd, because polkit sucks.
🌐
ArchWiki
wiki.archlinux.org › title › Talk:Polkit
Talk:Polkit - ArchWiki
The reference to ts-polkitagent should probably be removed for a couple of reasons. First, the package hasn't been updated since 2017. Not to mention, it really isn't needed anymore since polkit has it's own TTY agent built in. For the same reasons, polkit-dumb-agent-git should probably also ...
🌐
Snapcraft
snapcraft.io › docs › polkit-agent-interface
The polkit-agent interface
You should have been redirected · If not, click here to continue
🌐
Tsinghua
aur.tuna.tsinghua.edu.cn › packages › polkit-dumb-agent-git
AUR (en) - polkit-dumb-agent-git
A polkit agent in 145 lines of code using Qt and libsystemd, because polkit sucks.
🌐
ArchWiki
wiki.archlinux.org › title › Polkit
polkit - ArchWiki
Install the polkit package. An authentication agent is used to make the user of a session prove that they really are the user (by authenticating as the user) or an administrative user (by authenticating as an administrator).
🌐
LibHunt
libhunt.com › r › polkit-dumb-agent
Polkit-dumb-agent Alternatives and Reviews
Review polkit-agent polkit policykit Xdg Qt CPP Dbus Authentication Authorization Linux Linux Desktop desktop-environment ... SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives ... A simple program for X11 window system that prents the cursor from crossing into another monitor when you do't want it to. 4 4 81 6.0 Python polkit-dumb-agent VS ThemeChanger