Can't open .md files in a specific app (Okular)
Hello, I run Kubuntu, and prefer Okular to view Markdown files.In KDE (dolphin) when I double-click on a file with .md extension, it properly comes up in Okular.Yay!
188BET靠谱吗But in Zotero, if I click on a .md file that I have attached to an item -- whether that attachment is a "stored copy of" or a "link to" -- it comes up in ReText, a different application.
188BET靠谱吗I have gone into the Zotero advanced config editor and set the
188BET靠谱吗extensions.zotero.launcher.fileHandler.text/markdown option to value "/bin/okular", but it still opens in ReText.188BET靠谱吗I have even tried creating a custom script ("open-with-okular.sh") which launches okular, made the script executable, and used that as the value of the extensions.zotero.launcher.fileHandler.text/markdown option, all to no avail.
188BET靠谱吗How can I get Zotero to respect my application wishes here?
188BET靠谱吗But in Zotero, if I click on a .md file that I have attached to an item -- whether that attachment is a "stored copy of" or a "link to" -- it comes up in ReText, a different application.
188BET靠谱吗I have gone into the Zotero advanced config editor and set the
188BET靠谱吗extensions.zotero.launcher.fileHandler.text/markdown option to value "/bin/okular", but it still opens in ReText.188BET靠谱吗I have even tried creating a custom script ("open-with-okular.sh") which launches okular, made the script executable, and used that as the value of the extensions.zotero.launcher.fileHandler.text/markdown option, all to no avail.
188BET靠谱吗How can I get Zotero to respect my application wishes here?
~/.local/share/applications/defaults.list
would be the first place to look, but depending on the distro, there may be others.
[Default Applications]
application/pdf=kde4-okularApplication_pdf.desktop
which seems to jive with my OS opening PDFs in Okular, as I desire.Check.188BET靠谱吗What's the next place to look for why Zotero might be opening them in ReText instead?
[Default Applications]
application/pdf=kde4-okularApplication_pdf.desktop
text/markdown=kde4-okularApplication_pdf.desktop
Is that correct?188BET靠谱吗Hopefully not, because after logging out and back in, and restarting Zotero, it still views .md files in ReText...