View Full Version : Invokinger PDF viewer from commandline
06-20-2007, 04:58 PM
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.
06-20-2007, 05:37 PM
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.
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
06-21-2007, 03:21 AM
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 !
06-22-2007, 06:45 AM
In Python it goes like this:
context = osso.Context("openmime", "0.0.1", False)
mime = osso.Mime(context)
I guess it goes similarly in C, if you want to make a simple launcher program instead of using Python.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.