[packagekit] iface.InstallPackageName('openoffice-clipart') did not work

Adrien BUSTANY madcat at mymadcat.com
Fri Jun 13 14:22:25 PDT 2008


Hi Adrian
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.

Cheers
Adrien

nicholas adrian a écrit :
> Hi,
> I tried to run a sample code from PackageKit FAQ which basically 
> install a package through dbus but failed with the following message:
>
> Unable to use PackageKit: org.freedesktop.DBus.Error.UnknownMethod: 
> Method "InstallPackageName" with signature "s" on interface 
> "org.freedesktop.PackageKit" doesn't exist
>
> I run another dbus  code to run Introspect and get the following:
>
> <node>
>   <interface name="org.freedesktop.DBus.Introspectable">
>     <method name="Introspect">
>       <arg name="data" direction="out" type="s"/>
>     </method>
>   </interface>
>   <interface name="org.freedesktop.DBus.Properties">
>     <method name="Get">
>       <arg name="interface" direction="in" type="s"/>
>       <arg name="propname" direction="in" type="s"/>
>       <arg name="value" direction="out" type="v"/>
>     </method>
>     <method name="Set">
>       <arg name="interface" direction="in" type="s"/>
>       <arg name="propname" direction="in" type="s"/>
>       <arg name="value" direction="in" type="v"/>
>     </method>
>     <method name="GetAll">
>       <arg name="interface" direction="in" type="s"/>
>       <arg name="props" direction="out" type="a{sv}"/>
>     </method>
>   </interface>
> </node>
>
>
> I also check through d-feet and didn't see 'InstallPackageName' method 
> there.
>
> Is there anything that I have to set in order packagekit dbus to see 
> 'InstallPackageName' method?
>
> Note: I run gpk-update-icon already.
>
> -Nicholas-
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20080613/129d883c/attachment-0003.htm>


More information about the PackageKit mailing list