[maemo-developers] passing arguments to hildon applications

From: Eero Tamminen eero.tamminen at nokia.com
Date: Wed May 28 12:05:01 EEST 2008
Hi,

ext Andrew Daviel wrote:
>> Apparently PDF viewer listens only D-BUS for the new files.
> 
> Bah! I hate GUI file selectors ...
> $ ls -t *foobar*pdf  clickclick-click cut/paste
> $ xpdf latestfoobarthisweek.pdf
> 
> cf. waiting for some app to paint icons for all 2300 files in the 
> current directory (or worse, some other directory) so that I can try and 
> eyeball the one I want by making tiny mouse movements.. although, on the 
> tablet without a proper keyboard, and with not so many files, there's 
> something to be said for a GUI.
> 
>>
>> Just use mime summon utility from Tuomas:
>>     https://bugs.maemo.org/attachment.cgi?id=687
>>
> 
> I built that, and it doesn't crash :-7  but it doesn't pass the file, 
> either. osso_pdfviewer starts up with a blank page.

I looked into that and fix seems to be simple.  Add a sec or two wait
before exiting the main().  D-BUS seems to do something funky if sender
exits before the message is forwarded to the receiver.


	- Eero

More information about the maemo-developers mailing list