lbellonda / qxmledit

QXmlEdit XML editor. Downloads: https://sourceforge.net/projects/qxmledit/files
http://qxmledit.org
Other
160 stars 46 forks source link

mimetypes #74

Open tieugene opened 4 years ago

tieugene commented 4 years ago

QXmlEdit.desktop: MimeType += application/xml

lbellonda commented 4 years ago

application/xml is automatically inserted by KDE on SuSE. Adding the MIME type causes the existence of two identical lines in the property panel of .desktop file. The tested configuration is: MimeType=text/xml;application/xml;

In fact the terms are synonymous per rfc7303 (par. 9.2 text/xml Registration) https://en.wikipedia.org/wiki/XML_and_MIME

I think to leave the configuration as it is now. What do you think?

tieugene commented 4 years ago

I tested this on my Fedora 32. Removing application/xml from mime types does nothing bad. BUT - in "Open with..." dialog of file manager (pcmanfm-qt) QXmlEdit stands in 2nd place after Geany (agains 1st place with "application/xml" in QXmlEdit.desktop). So double clicking on xml file opens it in Geany. Problem is that Geany has "application/xml" (and has no "text/xml") in mime types.

So, maybe good choice will be to replace text/xml with application/xml. Requires testing.

Another way - to use desktop-file-install instead of dumb copying of *.desktop.