Git Product home page Git Product logo

polkit-dumb-agent's Introduction

polkit-dumb-agent

polkit is dumb, and never works.

so here is probably the simplest version you can have (except the first one that just ACKed every call), 97 lines of C++ and 45 lines of C, in total 142 lines of code.

it just uses kdesu to call a helper as root to send the reply, so all requests requires the user to enter the root password.

TODO

Write a simple replacement for polkit itself, it's a simple dbus API and 90% of what it provides is never used.

Requirements

  • C++ compiler
  • Qt5 (dbus and widgets)
  • kdesu

polkit-dumb-agent's People

Contributors

sandsmark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

polkit-dumb-agent's Issues

Fingerprint support?

Does polkit-dumb-agent support fingerprint authentication? As far as I know, it doesn't. If indeed it doesn't, what's your stance about supporting it?

Stat polkit agent when using startx?

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. Thanks a lot!

CMake Error at CMakeLists.txt:65 (find_package): Could not find a package configuration file provided by "Qt6WaylandClient"

Attempting to install polkit-dumb-agent-git from the AUR yields the error shown in the build log. I do not use Wayland, nor do I have it installed.
OS: EndeavourOS x86_64, AUR helper: yay

Build log:

...
-- Found XCB_XCB: /usr/lib/libxcb.so (found version "1.16") 
-- Found XCB_ICCCM: /usr/lib/libxcb-icccm.so (found version "0.4.2") 
-- Found XCB_KEYSYMS: /usr/lib/libxcb-keysyms.so (found version "0.4.1") 
-- Found XCB_RES: /usr/lib/libxcb-res.so (found version "1.16") 
-- Found XCB: /usr/lib/libxcb.so;/usr/lib/libxcb-icccm.so;/usr/lib/libxcb-keysyms.so;/usr/lib/libxcb-res.so (found version "1.16") found components: XCB KEYSYMS RES ICCCM 
CMake Error at CMakeLists.txt:65 (find_package):
  Could not find a package configuration file provided by "Qt6WaylandClient"
  (requested version 6.5.0) with any of the following names:

    Qt6WaylandClientConfig.cmake
    qt6waylandclient-config.cmake

  Add the installation prefix of "Qt6WaylandClient" to CMAKE_PREFIX_PATH or
  set "Qt6WaylandClient_DIR" to a directory containing one of the above
  files.  If "Qt6WaylandClient" provides a separate development package or
  SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!```

Problem when installing

Whenever i try installing this through an aur helper or manually it says there are dependency errors. It worked fine a month ago.

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 arrange funding for such project.

Are Qt styles within the scope of this project or should it be forked?

I love this as a bare bones replacement for the kde agent but default qt looks ugly so I added: QApplication::setStyle("gtk2");
after the line: QApplication app(argc, argv); and recompiled.
Would adding themes with something like argv be something worth doing here or should a separate project be forked?

Package 'libsystemd', required by 'virtual:world', not found

Getting this error when trying to compile:

FreeBSD% cmake .                   
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "1.7.4") 
-- Checking for module 'libsystemd'
--   Package 'libsystemd', required by 'virtual:world', not found
CMake Error at /usr/local/share/cmake/Modules/FindPkgConfig.cmake:562 (message):
  A required package was not found                                                               
Call Stack (most recent call first):                                                             
  /usr/local/share/cmake/Modules/FindPkgConfig.cmake:784 (_pkg_check_modules_internal)           
  CMakeLists.txt:10 (pkg_check_modules)                                                                                      

Is it possible to use this without systemd, which doesn't exist on FreeBSD?

Can sendreply.c be rewritten so that it doesn't need systemd? If not, why not?

Thank you very much. Looks like we share the same opinion about PolKit (and, in my case, most of the Red Hat stack).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.