Closed gaul closed 8 years ago
Can you run grep markdown /etc/mime.types
in a command line and share the result? I removed the x-markdown mimetype support last time since I thought it was no longer supported, maybe it's used on Ubuntu... If that's the problem it's an easy fix.
No results:
$ grep -c markdown /etc/mime.types
0
Well that's not what I expected, what about these three commands:
grep md /etc/mime.types
xdg-mime query filetype randomfile.md # this one is important
file --mime-type randomfile.md # I'm not sure this one work as expected since it doesn't give anything conclusive on my laptop..
$ grep md /etc/mime.types
application/index.cmd
application/msaccess mdb
application/vnd.shana.informed.formdata
application/vnd.uplanet.listcmd
application/vnd.uplanet.listcmd-wbxml
application/x-md5 md5
application/x-ms-wmd wmd
chemical/x-chemdraw chm
chemical/x-cmdf cmdf
chemical/x-macromodel-input mmd mmod
chemical/x-mdl-molfile mol
chemical/x-mdl-rdfile rd
chemical/x-mdl-rxnfile rxn
chemical/x-mdl-sdfile sd sdf
chemical/x-mdl-tgf tgf
chemical/x-vmd vmd
$ xdg-mime query filetype randomfile.md
text/x-markdown
$ file --mime-type randomfile.md
text/plain
Ok, the xdg-mime gives what I expected, thank you :) I'll fix that right away
Here you go, it should work with the version on master.
Confirmed working. #55 has some follow-up comments.
I always see the open file dialog. I bisected the regression to 1d9da0ecf4cfaad6f62ce1efb1744bade0d06efc.