Get program based on mime-type in C
Hello everybody!
Here is my problem:
I need to launch programs in my program and the program can be a script, a Linux executable or even a Windows executable (don't ask why).
The first thing i tried is to use xdg-open from my program, but i can't pass arguments to it, otherwise it would have worked perfectly.
Is there maybe a way to determine which program is set as default according to the mime-type of the program i want to launch?
I also tried kfmclient and gnome-open, they don't allow arguments either.
Help me, thanks!
|