cygstart URI handling

Ken Brown kbrown@cornell.edu
Fri Mar 30 20:08:00 GMT 2012


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



More information about the Cygwin-apps mailing list