Cannot set default application for xdg-open

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











up vote
0
down vote

favorite












I am trying to make gthumb the default when opening png files from the terminal



$ xdg-mime default ~/.gnome/apps/gthumb.desktop image/png


I created this symlink:



$ ls -l ~/.gnome/apps/gthumb.desktop
lrwxrwxrwx 1 gauthier gauthier 15 Jun 27 /home/gauthier/.gnome/apps/gthumb.desktop -> /usr/bin/gthumb


I expect xdg-mime query default image/png to return gthumb. Instead, it says:



$ xdg-mime query default image/png
eog.desktop


Why doesn't setting default have the effect I expect?







share|improve this question























    up vote
    0
    down vote

    favorite












    I am trying to make gthumb the default when opening png files from the terminal



    $ xdg-mime default ~/.gnome/apps/gthumb.desktop image/png


    I created this symlink:



    $ ls -l ~/.gnome/apps/gthumb.desktop
    lrwxrwxrwx 1 gauthier gauthier 15 Jun 27 /home/gauthier/.gnome/apps/gthumb.desktop -> /usr/bin/gthumb


    I expect xdg-mime query default image/png to return gthumb. Instead, it says:



    $ xdg-mime query default image/png
    eog.desktop


    Why doesn't setting default have the effect I expect?







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am trying to make gthumb the default when opening png files from the terminal



      $ xdg-mime default ~/.gnome/apps/gthumb.desktop image/png


      I created this symlink:



      $ ls -l ~/.gnome/apps/gthumb.desktop
      lrwxrwxrwx 1 gauthier gauthier 15 Jun 27 /home/gauthier/.gnome/apps/gthumb.desktop -> /usr/bin/gthumb


      I expect xdg-mime query default image/png to return gthumb. Instead, it says:



      $ xdg-mime query default image/png
      eog.desktop


      Why doesn't setting default have the effect I expect?







      share|improve this question











      I am trying to make gthumb the default when opening png files from the terminal



      $ xdg-mime default ~/.gnome/apps/gthumb.desktop image/png


      I created this symlink:



      $ ls -l ~/.gnome/apps/gthumb.desktop
      lrwxrwxrwx 1 gauthier gauthier 15 Jun 27 /home/gauthier/.gnome/apps/gthumb.desktop -> /usr/bin/gthumb


      I expect xdg-mime query default image/png to return gthumb. Instead, it says:



      $ xdg-mime query default image/png
      eog.desktop


      Why doesn't setting default have the effect I expect?









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 27 at 8:43









      Gauthier

      415518




      415518




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Enabling debugging with the environment variable XDG_UTILS_DEBUG_LEVEL helped:



          $ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime default ~/.gnome/apps/gthumb.desktop 
          image/png
          make_default_kde: No kde runtime detected
          make_default_generic /home/gauthier/.gnome/apps/gthumb.desktop image/png
          Updating /home/gauthier/.local/share/applications/mimeapps.list
          $ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default image/png
          Checking /home/gauthier/.config/mimeapps.list
          eog.desktop


          The mimeapps.list used for setting vs reading defaults is not the same.
          Solution (thanks to a comment here):



          rm ~/.config/mimeapps.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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f452174%2fcannot-set-default-application-for-xdg-open%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            Enabling debugging with the environment variable XDG_UTILS_DEBUG_LEVEL helped:



            $ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime default ~/.gnome/apps/gthumb.desktop 
            image/png
            make_default_kde: No kde runtime detected
            make_default_generic /home/gauthier/.gnome/apps/gthumb.desktop image/png
            Updating /home/gauthier/.local/share/applications/mimeapps.list
            $ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default image/png
            Checking /home/gauthier/.config/mimeapps.list
            eog.desktop


            The mimeapps.list used for setting vs reading defaults is not the same.
            Solution (thanks to a comment here):



            rm ~/.config/mimeapps.list





            share|improve this answer

























              up vote
              1
              down vote













              Enabling debugging with the environment variable XDG_UTILS_DEBUG_LEVEL helped:



              $ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime default ~/.gnome/apps/gthumb.desktop 
              image/png
              make_default_kde: No kde runtime detected
              make_default_generic /home/gauthier/.gnome/apps/gthumb.desktop image/png
              Updating /home/gauthier/.local/share/applications/mimeapps.list
              $ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default image/png
              Checking /home/gauthier/.config/mimeapps.list
              eog.desktop


              The mimeapps.list used for setting vs reading defaults is not the same.
              Solution (thanks to a comment here):



              rm ~/.config/mimeapps.list





              share|improve this answer























                up vote
                1
                down vote










                up vote
                1
                down vote









                Enabling debugging with the environment variable XDG_UTILS_DEBUG_LEVEL helped:



                $ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime default ~/.gnome/apps/gthumb.desktop 
                image/png
                make_default_kde: No kde runtime detected
                make_default_generic /home/gauthier/.gnome/apps/gthumb.desktop image/png
                Updating /home/gauthier/.local/share/applications/mimeapps.list
                $ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default image/png
                Checking /home/gauthier/.config/mimeapps.list
                eog.desktop


                The mimeapps.list used for setting vs reading defaults is not the same.
                Solution (thanks to a comment here):



                rm ~/.config/mimeapps.list





                share|improve this answer













                Enabling debugging with the environment variable XDG_UTILS_DEBUG_LEVEL helped:



                $ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime default ~/.gnome/apps/gthumb.desktop 
                image/png
                make_default_kde: No kde runtime detected
                make_default_generic /home/gauthier/.gnome/apps/gthumb.desktop image/png
                Updating /home/gauthier/.local/share/applications/mimeapps.list
                $ XDG_UTILS_DEBUG_LEVEL=2 xdg-mime query default image/png
                Checking /home/gauthier/.config/mimeapps.list
                eog.desktop


                The mimeapps.list used for setting vs reading defaults is not the same.
                Solution (thanks to a comment here):



                rm ~/.config/mimeapps.list






                share|improve this answer













                share|improve this answer



                share|improve this answer











                answered Jun 27 at 8:47









                Gauthier

                415518




                415518






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f452174%2fcannot-set-default-application-for-xdg-open%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay