I'm looking for a way to access file associations under Linux. I know that KDE and Gnome have such a list. Is there any function or tool that I can use to find out which program is associated with a specific file type? Preferably one that works with both environments and is easily accessible from Java, but separate tools/functions for the two that are only accessible from C++ will do too, I can use JNI.
Thx in advance.