How to associate *.md files with my editor? [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I want to open markdown files by double clicking on them in Sublime Text.
I tried every possible way, but I could not achieve it.



I created the mimeapps.list file with this content:



[Default Applications]
text/markdown=sublime_text.desktop

[Added Associations]
text/markdown=sublime_text.desktop


And put this file in the directory ~/.config/
This did not change anything



I also added this text/markdown=sublime_text.desktop line in the file /etc/gnome/defaults.list



I tried to put the mimeapps.list these paths:
~/.local/share/applications
/usr/share/applications



I also checked /usr/share/mime/text and found a file markdown.xml that describe the markdown file format for the system



Some checks show that the system sees the markdown files correctly:



~/Desktop$ mimetype test.md 
test.md: text/markdown

~$ xdg-mime query default text/markdown
sublime_text.desktop

~/Desktop$ mimeopen test.md
Opening "test.md" with Sublime Text (text/markdown)


But the .md files are still open in default application (xed in my case)



I know there is the easiest way to associate markdown files. In the context menu in the file manager, select the "Set as default"
enter image description here



Under the hood, it works not for text/markdown files but for text/plain. And I only need markdown files



Linux Mint 19
Cinnamon 3.8.8
nemo 3.8.5










share|improve this question















closed as off-topic by Jeff Schaller, schily, sebasth, Thomas Dickey, thrig Sep 8 at 14:24


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller, schily, sebasth, Thomas Dickey, thrig
If this question can be reworded to fit the rules in the help center, please edit the question.
















    up vote
    1
    down vote

    favorite












    I want to open markdown files by double clicking on them in Sublime Text.
    I tried every possible way, but I could not achieve it.



    I created the mimeapps.list file with this content:



    [Default Applications]
    text/markdown=sublime_text.desktop

    [Added Associations]
    text/markdown=sublime_text.desktop


    And put this file in the directory ~/.config/
    This did not change anything



    I also added this text/markdown=sublime_text.desktop line in the file /etc/gnome/defaults.list



    I tried to put the mimeapps.list these paths:
    ~/.local/share/applications
    /usr/share/applications



    I also checked /usr/share/mime/text and found a file markdown.xml that describe the markdown file format for the system



    Some checks show that the system sees the markdown files correctly:



    ~/Desktop$ mimetype test.md 
    test.md: text/markdown

    ~$ xdg-mime query default text/markdown
    sublime_text.desktop

    ~/Desktop$ mimeopen test.md
    Opening "test.md" with Sublime Text (text/markdown)


    But the .md files are still open in default application (xed in my case)



    I know there is the easiest way to associate markdown files. In the context menu in the file manager, select the "Set as default"
    enter image description here



    Under the hood, it works not for text/markdown files but for text/plain. And I only need markdown files



    Linux Mint 19
    Cinnamon 3.8.8
    nemo 3.8.5










    share|improve this question















    closed as off-topic by Jeff Schaller, schily, sebasth, Thomas Dickey, thrig Sep 8 at 14:24


    This question appears to be off-topic. The users who voted to close gave this specific reason:


    • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller, schily, sebasth, Thomas Dickey, thrig
    If this question can be reworded to fit the rules in the help center, please edit the question.














      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I want to open markdown files by double clicking on them in Sublime Text.
      I tried every possible way, but I could not achieve it.



      I created the mimeapps.list file with this content:



      [Default Applications]
      text/markdown=sublime_text.desktop

      [Added Associations]
      text/markdown=sublime_text.desktop


      And put this file in the directory ~/.config/
      This did not change anything



      I also added this text/markdown=sublime_text.desktop line in the file /etc/gnome/defaults.list



      I tried to put the mimeapps.list these paths:
      ~/.local/share/applications
      /usr/share/applications



      I also checked /usr/share/mime/text and found a file markdown.xml that describe the markdown file format for the system



      Some checks show that the system sees the markdown files correctly:



      ~/Desktop$ mimetype test.md 
      test.md: text/markdown

      ~$ xdg-mime query default text/markdown
      sublime_text.desktop

      ~/Desktop$ mimeopen test.md
      Opening "test.md" with Sublime Text (text/markdown)


      But the .md files are still open in default application (xed in my case)



      I know there is the easiest way to associate markdown files. In the context menu in the file manager, select the "Set as default"
      enter image description here



      Under the hood, it works not for text/markdown files but for text/plain. And I only need markdown files



      Linux Mint 19
      Cinnamon 3.8.8
      nemo 3.8.5










      share|improve this question















      I want to open markdown files by double clicking on them in Sublime Text.
      I tried every possible way, but I could not achieve it.



      I created the mimeapps.list file with this content:



      [Default Applications]
      text/markdown=sublime_text.desktop

      [Added Associations]
      text/markdown=sublime_text.desktop


      And put this file in the directory ~/.config/
      This did not change anything



      I also added this text/markdown=sublime_text.desktop line in the file /etc/gnome/defaults.list



      I tried to put the mimeapps.list these paths:
      ~/.local/share/applications
      /usr/share/applications



      I also checked /usr/share/mime/text and found a file markdown.xml that describe the markdown file format for the system



      Some checks show that the system sees the markdown files correctly:



      ~/Desktop$ mimetype test.md 
      test.md: text/markdown

      ~$ xdg-mime query default text/markdown
      sublime_text.desktop

      ~/Desktop$ mimeopen test.md
      Opening "test.md" with Sublime Text (text/markdown)


      But the .md files are still open in default application (xed in my case)



      I know there is the easiest way to associate markdown files. In the context menu in the file manager, select the "Set as default"
      enter image description here



      Under the hood, it works not for text/markdown files but for text/plain. And I only need markdown files



      Linux Mint 19
      Cinnamon 3.8.8
      nemo 3.8.5







      linux-mint cinnamon nemo markdown






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 7 at 21:12

























      asked Sep 7 at 20:26









      in-in

      416




      416




      closed as off-topic by Jeff Schaller, schily, sebasth, Thomas Dickey, thrig Sep 8 at 14:24


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller, schily, sebasth, Thomas Dickey, thrig
      If this question can be reworded to fit the rules in the help center, please edit the question.




      closed as off-topic by Jeff Schaller, schily, sebasth, Thomas Dickey, thrig Sep 8 at 14:24


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller, schily, sebasth, Thomas Dickey, thrig
      If this question can be reworded to fit the rules in the help center, please edit the question.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Sorry my fault.

          I tested the empty test.md, but when I added some markdown markup inside the file it all worked.



          ~/.config/mimeapps.list - this file works like a charm






          share|improve this answer



























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            Sorry my fault.

            I tested the empty test.md, but when I added some markdown markup inside the file it all worked.



            ~/.config/mimeapps.list - this file works like a charm






            share|improve this answer
























              up vote
              1
              down vote













              Sorry my fault.

              I tested the empty test.md, but when I added some markdown markup inside the file it all worked.



              ~/.config/mimeapps.list - this file works like a charm






              share|improve this answer






















                up vote
                1
                down vote










                up vote
                1
                down vote









                Sorry my fault.

                I tested the empty test.md, but when I added some markdown markup inside the file it all worked.



                ~/.config/mimeapps.list - this file works like a charm






                share|improve this answer












                Sorry my fault.

                I tested the empty test.md, but when I added some markdown markup inside the file it all worked.



                ~/.config/mimeapps.list - this file works like a charm







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 8 at 0:11









                in-in

                416




                416












                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)