I want to find the default handling application in my C program. Is there a C API with same functionality as xdg-mime query default mime-type on Linux?
I can add a new MIME type in shared MIME-info, but how can I associates this MIME type with an application?
Is there a linux API that can find the default application for a MIME type? Then I can use this application to open a file. I can not use xdg-open(url) because the file format is a wrapper format and ...
On my Gentoo box running without a desktop environment, every time I try to open a file the system tries to open it with Firefox. I understand that without a desktop environment "open file" cannot ...