Remove text/plain
in .desktop; add text/x-scheme
#50
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
My email to texmacs-devel got ignored [0], and GNU Savannah is hard to use.This is a small fix to prevent TeXmacs from becoming the default editor for all text files. It's really ANNOYING.
Since someday, the
text/plain
MimeType got seriously respected (at least for KDE on Fedora/openSUSE), thus it will replace the default text editor for all text files including.py .java .cpp .html
and more, as mentioned in my email [0].The reason is that text/x-python, text/x-c++src, text/html are all subtype of text/plain.[2]
TeXmacs is not a generic text editor like gedit, kate, vim .......
I also added
text/x-scheme
for.scm
and.ss
for scheme files, as defined at xdg-shared-mine-info database [1].[0] https://lists.gnu.org/archive/html/texmacs-dev/2021-02/msg00003.html
[1] https://github.com/freedesktop/xdg-shared-mime-info/blob/103b3058353ee7ca2b154b2e3d26d12cd1de958d/data/freedesktop.org.xml.in#L6462-L6467
[2] https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/