This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygstart URI handling


On 3/30/2012 2:29 PM, Yaakov (Cygwin/X) wrote:
On 2012-03-30 09:12, Ken Brown wrote:
In order to make the command to open the manual work, I created a
/usr/share/applications/defaults.list file with the following line:

application/xml=cygstart.desktop

Probably you should be using ~/.local/share/applications/mimeapps.list instead, but you've got the idea.

I used defaults.list rather than mimeapps.list because that's what I saw in xdg-mime. The latter uses mimeapps.list only for KDE 4.


By the way, I initially tried to set the default for application/xml by using xdg-mime instead of directly creating a defaults.list file. But that doesn't work, because xdg-mime uses a grep command that fails if defaults.list doesn't exist. That strikes me as a bug. I would expect xdg-mime to create the file if it doesn't exist.

Ken


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]