[maemo-developers] invoking the application manager programatically in Qt
From: Daniil Ivanov daniil.ivanov at gmail.comDate: Sun Feb 28 14:32:41 EET 2010
- Previous message: invoking the application manager programatically in Qt
- Next message: invoking the application manager programatically in Qt
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi! There is hildon_uri_open methon in libhildonmime, which wraps this dbus call. And of course you should not use QHttp as it was deprecated in favour of QNetworkAccessManager. Thanks, Daniil. 2010/2/28 Victor Manuel Jáquez Leal <ceyusa at gmail.com>: > hildon-application-manager exports a dbus method called "mime_open": > > dbus-send --type=method_call \ > --print-reply \ > --dest='com.nokia.hildon_application_manager' \ > /com/nokia/hildon_application_manager \ > com.nokia.hildon_application_manager.mime_open \ > string:'/home/user/MyDocs/fosdem-schedule_0.3_fremantle.deb' > > Also there's another dbus method called "install_file" where you set > the XID of your window and the installation work flow will be embedded > in you application... in theory, because it's not tested. > > vmjl > > On Thu, Feb 25, 2010 at 4:45 PM, ibrahim <ibrahim.ali at asgatech.com> wrote: >> greetings; >> >> I was hoping to add enable installing some features/add-ons/updates in the >> form of .deb packages (for example: font packages/ updates to my SW) from >> within my Qt application. So, I used an approach similar to OTA >> installation. I add a '.install' file in some server, open the link to that >> install file inside my application using qwebkit's webview. and when the >> user clicks on the link to the '.install' file, the >> Hildon-application-manager gets invoked and my update package is installed. >> but i faced the following problems: >> first: the webkit component doesn't understand the association between the >> .install file and the required application to open it. the qwebview either >> displays the .install file as text in the browser or does nothing. >> >> I can overcome this problem by delegating the webl inks and handling them on >> my own, ... when user clicks on the .install file's link, i can create a >> QHTtp object to download the file to any location (say /tmp) >> >> but the real problem is : i have the .install file But i can't invoke the >> app manager to install the package with the file. Calling the command >> "hildon-aaplication-manager install_file.install " from system() or using a >> QProcess object from within the code - OR EVEN from command-line as root - >> returns the following: >> in the console: the app manager requests a password (??? what password >> should i provide ???) >> then the app manager starts and shows the following notification: "Operation >> Failed" >> just like that. >> >> is there's a way to invoke the app manager to install a package from my Qt >> code ??? >> >> any assistance is higly appreciated >> thanks in advance; >> _______________________________________________ >> maemo-developers mailing list >> maemo-developers at maemo.org >> https://lists.maemo.org/mailman/listinfo/maemo-developers >> > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers >
- Previous message: invoking the application manager programatically in Qt
- Next message: invoking the application manager programatically in Qt
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]