Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mimetypes #74

Open
tieugene opened this issue Jun 27, 2020 · 2 comments
Open

mimetypes #74

tieugene opened this issue Jun 27, 2020 · 2 comments
Assignees
Milestone

Comments

@tieugene
Copy link

QXmlEdit.desktop: MimeType += application/xml

@lbellonda lbellonda self-assigned this Jun 29, 2020
@lbellonda lbellonda added this to the 0.9.16 milestone Jul 1, 2020
@lbellonda
Copy link
Owner

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants