Le 05/11/2012 03:51, Scott Kostyshak a écrit :
xdg-open tries to open a file with the "preferred" application of a user for that file on Linux (which is usually the application that is used when you double click on a file in your desktop environment). I think the command "open" on Mac does the same thing. I'm guessing there's a similar Windows command?
Note that for Mac OS and Windows, we already use the system's API. See AutoOpen stuff in os_(unix|win32).cpp. Unfortunately, no such API exists for linux.
Adding support for these could be a solution to common questions I see such as: "why does LyX open pdf files with Okular when I want it to open with Evince" and similar complaints.
You have seen in the 2008 discussion what the problems were at the time. It might be worth revisiting this problem now and see whether run-mailcap or xdg-open could be used these days.
JMarc