tags:

views:

83

answers:

2

Hello,

i use c++ and qt for a project. I would to know how i can get the default program : default navigator, default mail client, default editor ...

I found for Linux - Gnome: gconftool!

What is for Windows, Mac Os or Linux (KDE) ?

Thanks you.

A: 

On Windows this kind of stuff can be recovered directly from the registry (regedit).

Search the web to find out the specific registry paths, like this.

karlphillip
+1  A: 

If you look at the documentation for QDesktopServices::openUrl() you will see that:

If a mailto URL is specified, the user's e-mail client will be used to open a composer window containing the options specified in the URL, similar to the way mailto links are handled by a Web browser.

So using QDesktopServices::openUrl() you should be able to open both the default navigator and default mail client.

I assume you want to open these applications and not just find out what they are.

Alexandre Jasmin