[packagekit] run gpk-update-viewer as root

Richard Hughes hughsient at gmail.com
Thu May 5 07:00:27 PDT 2011


On 5 May 2011 14:12, Matthew Mosesohn <mmosesoh at redhat.com> wrote:
> I'm looking to figure out a way to run administratively as root
> gpk-update-viewer, and have it start up on whichever user is logged in.

So what we really want to do, is open the gpk-update-viewer as a user
process, as if the user had opened it themselves. I don't think we
want to open any GTK application as the root user as that introduces
all kind of security problems.

So, to do this, the gpk-update-icon process needs to listen to a
signal from packagekitd. And then the system component that lives in
the system context (rhnd for example) can invoke a method on
packagekitd using DBus, which cause the signal to be fired.

Would this solve the problem? If so, the new method of PackageKit
could certainly do other useful things in the session. Ideas welcome.

Richard.



More information about the PackageKit mailing list