- Notifications
You must be signed in to change notification settings - Fork16
DBus daemon for doing package action with the dnf package manager
License
manatools/dnfdaemon
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
dnf-daemon is a 2 DBus services there make part for dnf's API available for application via DBus calls.
There is a DBus session bus service running as current user for performing readonly actions.
There is a DBus system bus service running as root for performing actions there is making changes to the system
This makes it easy to do packaging action from your application no matter what language it is written in, as long as thereis DBus binding for it.
dnf-daemon uses PolicyKit for authentication for the system service, so when you call one of the commands (as normal users) you will get a
PolicyKit dialog to ask for password of a privileged user like root.
dnf-daemon is still under heavy development and the API is not stable or complete yet
dnfdaemon/ Contains the daemon python sourceclient/ Contains the client API bindings for python 2.x & 3.xtest/ Unit test for the daemon and python bindingsdbus/ DBus system service setup filespolicykit1/ PolicyKit authentication setup filesRun the following
git clone ...cd dnf-daemonmake test-instjust run:
make test-verboseto run the unit test with output to console
or this to just run the unit tests.
make testSession:
make exit-sessionSystem
make exit-systemBoth
make exit-bothsession (readonly as current user)
make run-sessionsystem (as root)
make run-systemThe dnfdaemon api is documentedhere
The API is under development, so it might change, when we hit version 1.0, API methods will be frozen andAPI method names, parameters and return types will not change in future releases, new API can be added,but the old ones stays as is
- Add the new API methods to dnfdaemon-system.py and optional dnfdaemon-session.py
- Add client api method in DnfDaemonBase if it is available in both daemonor in DnfDaemonClient is it is a system only api.
- Add unit tests for the api in test/test-system-api.py and optional to test/test-system-api.py if it exists in the session api
- Update docs/server.rst and docs/client-python.api ( add new api method to members )
- All unit tests must pass (make test) before pushing to github
About
DBus daemon for doing package action with the dnf package manager
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Contributors11
Uh oh!
There was an error while loading.Please reload this page.