View Single Post
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.