How do I change the default application for unknown file types?












10















Ever since installing Bless Hex Editor, all unknown files and text files automatically open with Bless instead of gedit. How do I change it back? I don't want to have to manually associate files with gedit, I just want gedit to be the default if there's no other application set up to open the file.



Solution:

modify ~/.local/share/applications/mimeapps.list



[Default Applications] 
- text/plain=bless.desktop
- application/octet-stream=bless.desktop
+ application/octet-stream=gedit.desktop









share|improve this question

























  • Can you post the contents of /usr/share/applications/defaults.list and ~/.local/share/applications/mimeapps.list on paste.ubuntu.com ?

    – imgx64
    Oct 14 '11 at 12:39











  • mimeapps.list defaults.list was just replaced with the distro default after upgrading to 11.10. I can see the bless entries entries there. Can I just delete them to revert back to the system default?

    – dmuir
    Oct 17 '11 at 5:45













  • to answer my own question, yes, deleting the offending lines from mineppas.list fixes things. Firefox is still wanting to open stuff with bless though...

    – dmuir
    Oct 17 '11 at 6:19











  • That's odd, Firefox seems to use the system settings on my computer. Did you try restarting the computer (or restarting Firefox) after deleting the bless entries in mimeapps.list?

    – imgx64
    Oct 17 '11 at 15:57











  • Ah, fixed it. The problem was that there is no default for application/octet-stream, so it was using bliss as it existed under "Added Association". So to fix, instead of removing the line in Default Applications: application/octet-stream=bliss.desktop I changed it to: application/octet-stream=gedit.desktop

    – dmuir
    Oct 21 '11 at 4:47
















10















Ever since installing Bless Hex Editor, all unknown files and text files automatically open with Bless instead of gedit. How do I change it back? I don't want to have to manually associate files with gedit, I just want gedit to be the default if there's no other application set up to open the file.



Solution:

modify ~/.local/share/applications/mimeapps.list



[Default Applications] 
- text/plain=bless.desktop
- application/octet-stream=bless.desktop
+ application/octet-stream=gedit.desktop









share|improve this question

























  • Can you post the contents of /usr/share/applications/defaults.list and ~/.local/share/applications/mimeapps.list on paste.ubuntu.com ?

    – imgx64
    Oct 14 '11 at 12:39











  • mimeapps.list defaults.list was just replaced with the distro default after upgrading to 11.10. I can see the bless entries entries there. Can I just delete them to revert back to the system default?

    – dmuir
    Oct 17 '11 at 5:45













  • to answer my own question, yes, deleting the offending lines from mineppas.list fixes things. Firefox is still wanting to open stuff with bless though...

    – dmuir
    Oct 17 '11 at 6:19











  • That's odd, Firefox seems to use the system settings on my computer. Did you try restarting the computer (or restarting Firefox) after deleting the bless entries in mimeapps.list?

    – imgx64
    Oct 17 '11 at 15:57











  • Ah, fixed it. The problem was that there is no default for application/octet-stream, so it was using bliss as it existed under "Added Association". So to fix, instead of removing the line in Default Applications: application/octet-stream=bliss.desktop I changed it to: application/octet-stream=gedit.desktop

    – dmuir
    Oct 21 '11 at 4:47














10












10








10


4






Ever since installing Bless Hex Editor, all unknown files and text files automatically open with Bless instead of gedit. How do I change it back? I don't want to have to manually associate files with gedit, I just want gedit to be the default if there's no other application set up to open the file.



Solution:

modify ~/.local/share/applications/mimeapps.list



[Default Applications] 
- text/plain=bless.desktop
- application/octet-stream=bless.desktop
+ application/octet-stream=gedit.desktop









share|improve this question
















Ever since installing Bless Hex Editor, all unknown files and text files automatically open with Bless instead of gedit. How do I change it back? I don't want to have to manually associate files with gedit, I just want gedit to be the default if there's no other application set up to open the file.



Solution:

modify ~/.local/share/applications/mimeapps.list



[Default Applications] 
- text/plain=bless.desktop
- application/octet-stream=bless.desktop
+ application/octet-stream=gedit.desktop






nautilus gedit






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 21 '11 at 4:53







dmuir

















asked Oct 10 '11 at 0:48









dmuirdmuir

196110




196110













  • Can you post the contents of /usr/share/applications/defaults.list and ~/.local/share/applications/mimeapps.list on paste.ubuntu.com ?

    – imgx64
    Oct 14 '11 at 12:39











  • mimeapps.list defaults.list was just replaced with the distro default after upgrading to 11.10. I can see the bless entries entries there. Can I just delete them to revert back to the system default?

    – dmuir
    Oct 17 '11 at 5:45













  • to answer my own question, yes, deleting the offending lines from mineppas.list fixes things. Firefox is still wanting to open stuff with bless though...

    – dmuir
    Oct 17 '11 at 6:19











  • That's odd, Firefox seems to use the system settings on my computer. Did you try restarting the computer (or restarting Firefox) after deleting the bless entries in mimeapps.list?

    – imgx64
    Oct 17 '11 at 15:57











  • Ah, fixed it. The problem was that there is no default for application/octet-stream, so it was using bliss as it existed under "Added Association". So to fix, instead of removing the line in Default Applications: application/octet-stream=bliss.desktop I changed it to: application/octet-stream=gedit.desktop

    – dmuir
    Oct 21 '11 at 4:47



















  • Can you post the contents of /usr/share/applications/defaults.list and ~/.local/share/applications/mimeapps.list on paste.ubuntu.com ?

    – imgx64
    Oct 14 '11 at 12:39











  • mimeapps.list defaults.list was just replaced with the distro default after upgrading to 11.10. I can see the bless entries entries there. Can I just delete them to revert back to the system default?

    – dmuir
    Oct 17 '11 at 5:45













  • to answer my own question, yes, deleting the offending lines from mineppas.list fixes things. Firefox is still wanting to open stuff with bless though...

    – dmuir
    Oct 17 '11 at 6:19











  • That's odd, Firefox seems to use the system settings on my computer. Did you try restarting the computer (or restarting Firefox) after deleting the bless entries in mimeapps.list?

    – imgx64
    Oct 17 '11 at 15:57











  • Ah, fixed it. The problem was that there is no default for application/octet-stream, so it was using bliss as it existed under "Added Association". So to fix, instead of removing the line in Default Applications: application/octet-stream=bliss.desktop I changed it to: application/octet-stream=gedit.desktop

    – dmuir
    Oct 21 '11 at 4:47

















Can you post the contents of /usr/share/applications/defaults.list and ~/.local/share/applications/mimeapps.list on paste.ubuntu.com ?

– imgx64
Oct 14 '11 at 12:39





Can you post the contents of /usr/share/applications/defaults.list and ~/.local/share/applications/mimeapps.list on paste.ubuntu.com ?

– imgx64
Oct 14 '11 at 12:39













mimeapps.list defaults.list was just replaced with the distro default after upgrading to 11.10. I can see the bless entries entries there. Can I just delete them to revert back to the system default?

– dmuir
Oct 17 '11 at 5:45







mimeapps.list defaults.list was just replaced with the distro default after upgrading to 11.10. I can see the bless entries entries there. Can I just delete them to revert back to the system default?

– dmuir
Oct 17 '11 at 5:45















to answer my own question, yes, deleting the offending lines from mineppas.list fixes things. Firefox is still wanting to open stuff with bless though...

– dmuir
Oct 17 '11 at 6:19





to answer my own question, yes, deleting the offending lines from mineppas.list fixes things. Firefox is still wanting to open stuff with bless though...

– dmuir
Oct 17 '11 at 6:19













That's odd, Firefox seems to use the system settings on my computer. Did you try restarting the computer (or restarting Firefox) after deleting the bless entries in mimeapps.list?

– imgx64
Oct 17 '11 at 15:57





That's odd, Firefox seems to use the system settings on my computer. Did you try restarting the computer (or restarting Firefox) after deleting the bless entries in mimeapps.list?

– imgx64
Oct 17 '11 at 15:57













Ah, fixed it. The problem was that there is no default for application/octet-stream, so it was using bliss as it existed under "Added Association". So to fix, instead of removing the line in Default Applications: application/octet-stream=bliss.desktop I changed it to: application/octet-stream=gedit.desktop

– dmuir
Oct 21 '11 at 4:47





Ah, fixed it. The problem was that there is no default for application/octet-stream, so it was using bliss as it existed under "Added Association". So to fix, instead of removing the line in Default Applications: application/octet-stream=bliss.desktop I changed it to: application/octet-stream=gedit.desktop

– dmuir
Oct 21 '11 at 4:47










2 Answers
2






active

oldest

votes


















10














modify ~/.local/share/applications/mimeapps.list



[Default Applications] 
- text/plain=bless.desktop
- application/octet-stream=bless.desktop
+ application/octet-stream=gedit.desktop


This reverts the text/plain app to using the system default in /usr/share/applications/defaults.list, and changes the default application/octet-stream. It seems that Firefox labels this mime-type as "Unknown".






share|improve this answer

































    2














    right click on the unknown file, properties, open with. If your desired application is in the list, click on it, if not then click on the Show Other Applications and select the one you want.
    Cheers!






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f65009%2fhow-do-i-change-the-default-application-for-unknown-file-types%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      10














      modify ~/.local/share/applications/mimeapps.list



      [Default Applications] 
      - text/plain=bless.desktop
      - application/octet-stream=bless.desktop
      + application/octet-stream=gedit.desktop


      This reverts the text/plain app to using the system default in /usr/share/applications/defaults.list, and changes the default application/octet-stream. It seems that Firefox labels this mime-type as "Unknown".






      share|improve this answer






























        10














        modify ~/.local/share/applications/mimeapps.list



        [Default Applications] 
        - text/plain=bless.desktop
        - application/octet-stream=bless.desktop
        + application/octet-stream=gedit.desktop


        This reverts the text/plain app to using the system default in /usr/share/applications/defaults.list, and changes the default application/octet-stream. It seems that Firefox labels this mime-type as "Unknown".






        share|improve this answer




























          10












          10








          10







          modify ~/.local/share/applications/mimeapps.list



          [Default Applications] 
          - text/plain=bless.desktop
          - application/octet-stream=bless.desktop
          + application/octet-stream=gedit.desktop


          This reverts the text/plain app to using the system default in /usr/share/applications/defaults.list, and changes the default application/octet-stream. It seems that Firefox labels this mime-type as "Unknown".






          share|improve this answer















          modify ~/.local/share/applications/mimeapps.list



          [Default Applications] 
          - text/plain=bless.desktop
          - application/octet-stream=bless.desktop
          + application/octet-stream=gedit.desktop


          This reverts the text/plain app to using the system default in /usr/share/applications/defaults.list, and changes the default application/octet-stream. It seems that Firefox labels this mime-type as "Unknown".







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 9 at 5:22









          Pablo Bianchi

          2,4751532




          2,4751532










          answered Oct 26 '11 at 0:58









          dmuirdmuir

          196110




          196110

























              2














              right click on the unknown file, properties, open with. If your desired application is in the list, click on it, if not then click on the Show Other Applications and select the one you want.
              Cheers!






              share|improve this answer




























                2














                right click on the unknown file, properties, open with. If your desired application is in the list, click on it, if not then click on the Show Other Applications and select the one you want.
                Cheers!






                share|improve this answer


























                  2












                  2








                  2







                  right click on the unknown file, properties, open with. If your desired application is in the list, click on it, if not then click on the Show Other Applications and select the one you want.
                  Cheers!






                  share|improve this answer













                  right click on the unknown file, properties, open with. If your desired application is in the list, click on it, if not then click on the Show Other Applications and select the one you want.
                  Cheers!







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Oct 21 '11 at 8:11









                  bogdanbogdan

                  1062




                  1062






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f65009%2fhow-do-i-change-the-default-application-for-unknown-file-types%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Human spaceflight

                      Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                      File:DeusFollowingSea.jpg