Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dmccuskey

Pages: [1]
1
Qt/Qtopia / How do I find helper app based on file mimetype?
« on: July 12, 2004, 07:10:57 pm »
Hello,

I am looking for a way to launch a helper app (web browser) based on a file's mimetype (.html).

my scenario:
i have downloaded various web pages/.pdfs and have their file name/path in a QListView. I want a user to be able to select one and launch a browser (or whatever the correct app is) to view the file residing on the filesystem.

Questions are:

What is the part of Qtopia/Linux which knows about mimetypes from /opt/QtPalmtop/etc/mime.types and associates apps from their respective .desktop?

Can I do this in Qtopia/pyQt?

Can I do this from straight Python?

At the least, if I could communicate with some part of the system and find out what applications handle a certain mimetype, then I could launch it using exec() or something while passing in the filename as a parameter.
I'm pretty new to Zaurus/pyQt programming, so I'm not sure what tools I have at my disposal.

Anyone have any ideas?

Thank you,
david

Pages: [1]