Thanks toby but that's not what I'm asking.
What I'm looking for is something like the "file associations" in windows, i.e. when the user clicks, for example, on a ".pdf" file I want to get which programs open PDFs; evince, gedit, gimp, ...
Basicaly, what shows when you right-click a file in the file manager and select "Open with ..."