[maemo-developers] Dbus call to launch Image-Viewer?
From: Eero Tamminen eero.tamminen at nokia.comDate: Mon Sep 8 10:37:50 EEST 2008
- Previous message: [Make.am issue]Sofia throuwing Error message
- Next message: Dbus call to launch Image-Viewer?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, ext Denis DeLaRoca wrote: > On Fri, 28 Dec 2007, Tuomas Kulve wrote: > >> Not sure about dbus call, but check hildon_mime_open_file() in >> /usr/include/hildon-mime.h. >> >> At least it's trivial to make a simple executable opening a file with that. > > Tuomas, > > I tried the two small programs that you wrote hildon-mime-summon and > hildon-mime-summon2 to launch apps by mime type. > > hildon-mime-summon file:///home/user/PetitPrince.jpg > hildon-mime-summon image/jpeg file:///home/user/PetitPrince.jpg > > Both launch the Image Viewer allright... but this *first* invocation does > not display my image -- rather it displays the images in the default > folder IMAGES. If this happens also in Diablo release, could you file a bug about first mime open request not working properly? App shouldn't care about whether it were already running when receiving file open D-BUS request. > With the Image Viewer already launched, repeating the above commands *do* > finally display my images. Is the problem that Image Viewer is hard-wired > to launch with the images in the IMAGES folder? Looking at the bug: https://bugs.maemo.org/show_bug.cgi?id=2521 I guess when started, the application expects first a "top" message and only then a "mime open" message (opening a file doesn't imply topping as the file could be music you want to be played on background). I.e. I think more correct way to work around the above problem (than asking app to open file twice) would be by sending first "top" and them "mime open" request as I think you'd anyway want the app to be topped to show the image even when it was already running on the background... - Eero
- Previous message: [Make.am issue]Sofia throuwing Error message
- Next message: Dbus call to launch Image-Viewer?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]