Active Topics

 


Reply
Thread Tools
Posts: 9 | Thanked: 0 times | Joined on Jun 2007 @ UK
#1
Hi. I would like to be able to invoke the PDF viewer from a shell, in order to open email attachments. I have poked around but so far haven't been able to work it out. Any hints gratefully received.

Thanks,
Steve
 
Posts: 468 | Thanked: 610 times | Joined on Jun 2006
#2
You probably need to use the D-bus. I must say that I don't really understand it yet, but it probably be somewhat the same as using the webbrowser from xterm.
http://www.internettablettalk.com/fo...ead.php?t=5713

for example starting the web browser:
dbus-send --print-reply --dest=com.nokia.osso_browser /com/nokia/osso_browser com.nokia.osso_browser.load_url string:http://www.internettablettalk.com/
it probably is somewhat the same for the pdf viewer, Please let us know when you figure it out
 
Posts: 9 | Thanked: 0 times | Joined on Jun 2007 @ UK
#3
Hi Bernard. Thanks for the tip, and I shall do some poking around and see what I can do. I shall let you know if I succeed !

Regards
Steve.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#4
In Python it goes like this:

Code:
import osso
context = osso.Context("openmime", "0.0.1", False)
mime = osso.Mime(context)
mime.open_file_with_mime_type("/home/user/test.pdf", "application/pdf")
I guess it goes similarly in C, if you want to make a simple launcher program instead of using Python.
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:16.