Re: DPKG on DBus service
Hello David Palacio,
2010/1/17 David Palacio <dpalacio@uninorte.edu.co>:
> I made a little helper for the package manager Shaman. When it comes to
> install/remove packages, DPKG dies with "Sub-process /usr/bin/dpkg returned an
> error code (2)".
Mhh. I don't know why sorry, as i have know knowledge about Shaman
(i heard it the first time) or DBus or whatever, i would suggest to ask
dpkg Maintainers what Returncode 2 means, they should know what
they expect.
> The helper is implemented as a DBus service that starts on demand. But, when
> it is started from a terminal with sudo, DPKG does not die and the
> installation occurs as expected.
Have you looked e.g. at aptdeamon? [0] It is a dbus interface
with policykit in mind, so maybe this helps you.
> What could be missing in DBus, that is available in terminal?
$ export | grep DBUS
declare -x KONSOLE_DBUS_SERVICE=":1.0"
declare -x KONSOLE_DBUS_SESSION="/Sessions/4"
Maybe something like that is missing?
(as i said, i don't know, just wild guessing)
Best regards / Mit freundlichen Grüßen,
David "DonKult" Kalnischkies
[0] http://packages.debian.org/de/sid/aptdaemon
Reply to: