Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I use PackageKit in my application?

application packagekit
0
Posted

How do I use PackageKit in my application?

0

If you are using GNOME, or running the gpk-update-icon then you can use the session dbus interface provided by this process. If you are not using GNOME, or choose to not use the gpk-update-icon applet then you can use an alternate interface provided by your desktop. Using this shared session service you can use the following DBUS methods to make PackageKit just do the right thing. All the additional confirmation, package downloads, GPG and EULA prompting is done automatically. The DBUS methods are designed to be run syncronously, but can be run async using dbus_g_proxy_begin_call and then returning on the DBusGProxyCallNotify.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123