<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Adrian<br>
You should call the Introspect method to get the list of the methods.
IIRC the method to install a package is InstallPackage(s).
InstallPackages is for the 0.2 API. You might want to try pkmon -vvv or
dbus-monitor --system to see how gnome-packagekit does it.<br>
<br>
Cheers<br>
Adrien<br>
<br>
nicholas adrian a écrit :
<blockquote cite="mid:432450.32131.qm@web52808.mail.re2.yahoo.com"
type="cite">
<style type="text/css"><!-- DIV {margin:0px;} --></style>
<div
style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<div>Hi,<br>
I tried to run a sample code from PackageKit FAQ which basically
install a package through dbus but failed with the following message:<br>
<br>
Unable
to use PackageKit: org.freedesktop.DBus.Error.UnknownMethod: Method
"InstallPackageName" with signature "s" on interface
"org.freedesktop.PackageKit" doesn't exist<br>
<br>
I run another dbus code to run Introspect and get the following:<br>
<br>
<node><br>
<interface name="org.freedesktop.DBus.Introspectable"><br>
<method name="Introspect"><br>
<arg name="data" direction="out" type="s"/><br>
</method><br>
</interface><br>
<interface name="org.freedesktop.DBus.Properties"><br>
<method name="Get"><br>
<arg name="interface" direction="in" type="s"/><br>
<arg name="propname" direction="in" type="s"/><br>
<arg name="value" direction="out" type="v"/><br>
</method><br>
<method name="Set"><br>
<arg name="interface" direction="in" type="s"/><br>
<arg name="propname" direction="in" type="s"/><br>
<arg name="value" direction="in" type="v"/><br>
</method><br>
<method name="GetAll"><br>
<arg name="interface" direction="in" type="s"/><br>
<arg name="props" direction="out" type="a{sv}"/><br>
</method><br>
</interface><br>
</node><br>
<br>
<br>
I also check through d-feet and didn't see 'InstallPackageName' method
there.<br>
<br>
Is there anything that I have to set in order packagekit dbus to see
'InstallPackageName' method? <br>
<br>
Note: I run gpk-update-icon already.<br>
<br>
-Nicholas-</div>
</div>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
PackageKit mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PackageKit@lists.freedesktop.org">PackageKit@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/packagekit">http://lists.freedesktop.org/mailman/listinfo/packagekit</a>
</pre>
</blockquote>
<br>
</body>
</html>