Changing file associations in GNOME?












6















This blog post talks about how to change the default application to handle a file type in Nautilus for individual file types (right-click on the file, "open with", and select the new default application), but is there a way to list all current associations and configure them in one go, similar to the Windows "folder options | file types" tab? There seem to be a bunch of default associations that I want to change (all various image files are being opened in IceWeasel instead of the image viewer), and I don't want to have to change them one-by-one in the file manager. If there's no GUI for doing this, then where does Nautilus store its file associations? Can I edit them with a text editor?










share|improve this question





























    6















    This blog post talks about how to change the default application to handle a file type in Nautilus for individual file types (right-click on the file, "open with", and select the new default application), but is there a way to list all current associations and configure them in one go, similar to the Windows "folder options | file types" tab? There seem to be a bunch of default associations that I want to change (all various image files are being opened in IceWeasel instead of the image viewer), and I don't want to have to change them one-by-one in the file manager. If there's no GUI for doing this, then where does Nautilus store its file associations? Can I edit them with a text editor?










    share|improve this question



























      6












      6








      6


      2






      This blog post talks about how to change the default application to handle a file type in Nautilus for individual file types (right-click on the file, "open with", and select the new default application), but is there a way to list all current associations and configure them in one go, similar to the Windows "folder options | file types" tab? There seem to be a bunch of default associations that I want to change (all various image files are being opened in IceWeasel instead of the image viewer), and I don't want to have to change them one-by-one in the file manager. If there's no GUI for doing this, then where does Nautilus store its file associations? Can I edit them with a text editor?










      share|improve this question
















      This blog post talks about how to change the default application to handle a file type in Nautilus for individual file types (right-click on the file, "open with", and select the new default application), but is there a way to list all current associations and configure them in one go, similar to the Windows "folder options | file types" tab? There seem to be a bunch of default associations that I want to change (all various image files are being opened in IceWeasel instead of the image viewer), and I don't want to have to change them one-by-one in the file manager. If there's no GUI for doing this, then where does Nautilus store its file associations? Can I edit them with a text editor?







      gnome files nautilus






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 22 '12 at 14:25









      slybloty

      62831033




      62831033










      asked Jun 22 '12 at 12:33









      JezJez

      3282726




      3282726






















          3 Answers
          3






          active

          oldest

          votes


















          7














          All of your file associations are stored in $HOME/.local/share/applications/mimeapps.list. Some of them are not in your personal mimeapps.list file. There's a system wide file with all the default associations in /usr/share/applications/mimeapps.list and/or in /usr/share/applications/defaults.list.



          For more info check out Specifications/mime-actions-spec



          Edit:

          In Fedora 14 I have these settings files:



          /var/lib/gdm/.local/share/applications/mimeapps.list
          /usr/share/applications/defaults.list
          /usr/local/share/applications/defaults.list
          $HOME/.local/share/applications/defaults.list
          $HOME/.local/share/applications/mimeapps.list





          share|improve this answer


























          • Thanks, that helps a little in that I do indeed have a $HOME/.local/share/applications/mimeapps.list with a few added associations, however I do not have any .list files in /usr/share/applications/ and yet there are evidently a bunch of other default associations stored somewhere. Do you know where else they could be stored?

            – Jez
            Jun 22 '12 at 14:31











          • More strangeness. I've looked through all the defaults.list and mimeapps.list files on the system, and in two of them, JPEG images are actually configured to run with eog.desktop which should open them in the image viewer and not Iceweasel, and yet Nautilus still opens JPEG images in Iceweasel. How could it be getting this file association?

            – Jez
            Jun 22 '12 at 15:04











          • That is strange. I have this: $ cat ./.local/share/applications/mimeapps.list | grep jpeg image/jpeg=gthumb.desktop;gnome-eog.desktop;

            – slybloty
            Jun 22 '12 at 15:47











          • your link is broken.

            – chovy
            Dec 22 '18 at 1:31



















          3














          On my system (Debian Jessie) I found all the normal methods of specifying a default application wouldn't override the one hiding in ~/.config/mimeapps.list.



          Thunar insisted on opening a particular file with gedit even after I told it to make the correct application the default. When I removed the setting from ~/.config/mimeapps.list, it started working properly again.






          share|improve this answer

































            0














            I am using Ubuntu 13.10.



            The file you need to edit is /etc/gnome/defaults.list.






            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "106"
              };
              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: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              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%2funix.stackexchange.com%2fquestions%2f41372%2fchanging-file-associations-in-gnome%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              7














              All of your file associations are stored in $HOME/.local/share/applications/mimeapps.list. Some of them are not in your personal mimeapps.list file. There's a system wide file with all the default associations in /usr/share/applications/mimeapps.list and/or in /usr/share/applications/defaults.list.



              For more info check out Specifications/mime-actions-spec



              Edit:

              In Fedora 14 I have these settings files:



              /var/lib/gdm/.local/share/applications/mimeapps.list
              /usr/share/applications/defaults.list
              /usr/local/share/applications/defaults.list
              $HOME/.local/share/applications/defaults.list
              $HOME/.local/share/applications/mimeapps.list





              share|improve this answer


























              • Thanks, that helps a little in that I do indeed have a $HOME/.local/share/applications/mimeapps.list with a few added associations, however I do not have any .list files in /usr/share/applications/ and yet there are evidently a bunch of other default associations stored somewhere. Do you know where else they could be stored?

                – Jez
                Jun 22 '12 at 14:31











              • More strangeness. I've looked through all the defaults.list and mimeapps.list files on the system, and in two of them, JPEG images are actually configured to run with eog.desktop which should open them in the image viewer and not Iceweasel, and yet Nautilus still opens JPEG images in Iceweasel. How could it be getting this file association?

                – Jez
                Jun 22 '12 at 15:04











              • That is strange. I have this: $ cat ./.local/share/applications/mimeapps.list | grep jpeg image/jpeg=gthumb.desktop;gnome-eog.desktop;

                – slybloty
                Jun 22 '12 at 15:47











              • your link is broken.

                – chovy
                Dec 22 '18 at 1:31
















              7














              All of your file associations are stored in $HOME/.local/share/applications/mimeapps.list. Some of them are not in your personal mimeapps.list file. There's a system wide file with all the default associations in /usr/share/applications/mimeapps.list and/or in /usr/share/applications/defaults.list.



              For more info check out Specifications/mime-actions-spec



              Edit:

              In Fedora 14 I have these settings files:



              /var/lib/gdm/.local/share/applications/mimeapps.list
              /usr/share/applications/defaults.list
              /usr/local/share/applications/defaults.list
              $HOME/.local/share/applications/defaults.list
              $HOME/.local/share/applications/mimeapps.list





              share|improve this answer


























              • Thanks, that helps a little in that I do indeed have a $HOME/.local/share/applications/mimeapps.list with a few added associations, however I do not have any .list files in /usr/share/applications/ and yet there are evidently a bunch of other default associations stored somewhere. Do you know where else they could be stored?

                – Jez
                Jun 22 '12 at 14:31











              • More strangeness. I've looked through all the defaults.list and mimeapps.list files on the system, and in two of them, JPEG images are actually configured to run with eog.desktop which should open them in the image viewer and not Iceweasel, and yet Nautilus still opens JPEG images in Iceweasel. How could it be getting this file association?

                – Jez
                Jun 22 '12 at 15:04











              • That is strange. I have this: $ cat ./.local/share/applications/mimeapps.list | grep jpeg image/jpeg=gthumb.desktop;gnome-eog.desktop;

                – slybloty
                Jun 22 '12 at 15:47











              • your link is broken.

                – chovy
                Dec 22 '18 at 1:31














              7












              7








              7







              All of your file associations are stored in $HOME/.local/share/applications/mimeapps.list. Some of them are not in your personal mimeapps.list file. There's a system wide file with all the default associations in /usr/share/applications/mimeapps.list and/or in /usr/share/applications/defaults.list.



              For more info check out Specifications/mime-actions-spec



              Edit:

              In Fedora 14 I have these settings files:



              /var/lib/gdm/.local/share/applications/mimeapps.list
              /usr/share/applications/defaults.list
              /usr/local/share/applications/defaults.list
              $HOME/.local/share/applications/defaults.list
              $HOME/.local/share/applications/mimeapps.list





              share|improve this answer















              All of your file associations are stored in $HOME/.local/share/applications/mimeapps.list. Some of them are not in your personal mimeapps.list file. There's a system wide file with all the default associations in /usr/share/applications/mimeapps.list and/or in /usr/share/applications/defaults.list.



              For more info check out Specifications/mime-actions-spec



              Edit:

              In Fedora 14 I have these settings files:



              /var/lib/gdm/.local/share/applications/mimeapps.list
              /usr/share/applications/defaults.list
              /usr/local/share/applications/defaults.list
              $HOME/.local/share/applications/defaults.list
              $HOME/.local/share/applications/mimeapps.list






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Feb 3 at 21:23

























              answered Jun 22 '12 at 13:02









              slyblotyslybloty

              62831033




              62831033













              • Thanks, that helps a little in that I do indeed have a $HOME/.local/share/applications/mimeapps.list with a few added associations, however I do not have any .list files in /usr/share/applications/ and yet there are evidently a bunch of other default associations stored somewhere. Do you know where else they could be stored?

                – Jez
                Jun 22 '12 at 14:31











              • More strangeness. I've looked through all the defaults.list and mimeapps.list files on the system, and in two of them, JPEG images are actually configured to run with eog.desktop which should open them in the image viewer and not Iceweasel, and yet Nautilus still opens JPEG images in Iceweasel. How could it be getting this file association?

                – Jez
                Jun 22 '12 at 15:04











              • That is strange. I have this: $ cat ./.local/share/applications/mimeapps.list | grep jpeg image/jpeg=gthumb.desktop;gnome-eog.desktop;

                – slybloty
                Jun 22 '12 at 15:47











              • your link is broken.

                – chovy
                Dec 22 '18 at 1:31



















              • Thanks, that helps a little in that I do indeed have a $HOME/.local/share/applications/mimeapps.list with a few added associations, however I do not have any .list files in /usr/share/applications/ and yet there are evidently a bunch of other default associations stored somewhere. Do you know where else they could be stored?

                – Jez
                Jun 22 '12 at 14:31











              • More strangeness. I've looked through all the defaults.list and mimeapps.list files on the system, and in two of them, JPEG images are actually configured to run with eog.desktop which should open them in the image viewer and not Iceweasel, and yet Nautilus still opens JPEG images in Iceweasel. How could it be getting this file association?

                – Jez
                Jun 22 '12 at 15:04











              • That is strange. I have this: $ cat ./.local/share/applications/mimeapps.list | grep jpeg image/jpeg=gthumb.desktop;gnome-eog.desktop;

                – slybloty
                Jun 22 '12 at 15:47











              • your link is broken.

                – chovy
                Dec 22 '18 at 1:31

















              Thanks, that helps a little in that I do indeed have a $HOME/.local/share/applications/mimeapps.list with a few added associations, however I do not have any .list files in /usr/share/applications/ and yet there are evidently a bunch of other default associations stored somewhere. Do you know where else they could be stored?

              – Jez
              Jun 22 '12 at 14:31





              Thanks, that helps a little in that I do indeed have a $HOME/.local/share/applications/mimeapps.list with a few added associations, however I do not have any .list files in /usr/share/applications/ and yet there are evidently a bunch of other default associations stored somewhere. Do you know where else they could be stored?

              – Jez
              Jun 22 '12 at 14:31













              More strangeness. I've looked through all the defaults.list and mimeapps.list files on the system, and in two of them, JPEG images are actually configured to run with eog.desktop which should open them in the image viewer and not Iceweasel, and yet Nautilus still opens JPEG images in Iceweasel. How could it be getting this file association?

              – Jez
              Jun 22 '12 at 15:04





              More strangeness. I've looked through all the defaults.list and mimeapps.list files on the system, and in two of them, JPEG images are actually configured to run with eog.desktop which should open them in the image viewer and not Iceweasel, and yet Nautilus still opens JPEG images in Iceweasel. How could it be getting this file association?

              – Jez
              Jun 22 '12 at 15:04













              That is strange. I have this: $ cat ./.local/share/applications/mimeapps.list | grep jpeg image/jpeg=gthumb.desktop;gnome-eog.desktop;

              – slybloty
              Jun 22 '12 at 15:47





              That is strange. I have this: $ cat ./.local/share/applications/mimeapps.list | grep jpeg image/jpeg=gthumb.desktop;gnome-eog.desktop;

              – slybloty
              Jun 22 '12 at 15:47













              your link is broken.

              – chovy
              Dec 22 '18 at 1:31





              your link is broken.

              – chovy
              Dec 22 '18 at 1:31













              3














              On my system (Debian Jessie) I found all the normal methods of specifying a default application wouldn't override the one hiding in ~/.config/mimeapps.list.



              Thunar insisted on opening a particular file with gedit even after I told it to make the correct application the default. When I removed the setting from ~/.config/mimeapps.list, it started working properly again.






              share|improve this answer






























                3














                On my system (Debian Jessie) I found all the normal methods of specifying a default application wouldn't override the one hiding in ~/.config/mimeapps.list.



                Thunar insisted on opening a particular file with gedit even after I told it to make the correct application the default. When I removed the setting from ~/.config/mimeapps.list, it started working properly again.






                share|improve this answer




























                  3












                  3








                  3







                  On my system (Debian Jessie) I found all the normal methods of specifying a default application wouldn't override the one hiding in ~/.config/mimeapps.list.



                  Thunar insisted on opening a particular file with gedit even after I told it to make the correct application the default. When I removed the setting from ~/.config/mimeapps.list, it started working properly again.






                  share|improve this answer















                  On my system (Debian Jessie) I found all the normal methods of specifying a default application wouldn't override the one hiding in ~/.config/mimeapps.list.



                  Thunar insisted on opening a particular file with gedit even after I told it to make the correct application the default. When I removed the setting from ~/.config/mimeapps.list, it started working properly again.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jan 10 '15 at 19:06









                  Archemar

                  20.1k93772




                  20.1k93772










                  answered Jan 10 '15 at 18:27









                  Bryan LeamanBryan Leaman

                  311




                  311























                      0














                      I am using Ubuntu 13.10.



                      The file you need to edit is /etc/gnome/defaults.list.






                      share|improve this answer




























                        0














                        I am using Ubuntu 13.10.



                        The file you need to edit is /etc/gnome/defaults.list.






                        share|improve this answer


























                          0












                          0








                          0







                          I am using Ubuntu 13.10.



                          The file you need to edit is /etc/gnome/defaults.list.






                          share|improve this answer













                          I am using Ubuntu 13.10.



                          The file you need to edit is /etc/gnome/defaults.list.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Feb 26 '14 at 21:43









                          user905user905

                          1




                          1






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • 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%2funix.stackexchange.com%2fquestions%2f41372%2fchanging-file-associations-in-gnome%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

                              How to make a Squid Proxy server?

                              Is this a new Fibonacci Identity?

                              19世紀