How to change the default application to open xml file in Ubuntu Bionic Beaver (development branch)?

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








up vote
1
down vote

favorite












I follow this and this to change the default application. But it does not work.



I try to change to Text Editor as default application to open xml file but it does not change. By default it is firefox.




cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu Bionic Beaver (development branch)"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic


enter image description here







share|improve this question




















  • possible duplicate of this and this
    – ptetteh227
    Apr 30 at 8:51















up vote
1
down vote

favorite












I follow this and this to change the default application. But it does not work.



I try to change to Text Editor as default application to open xml file but it does not change. By default it is firefox.




cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu Bionic Beaver (development branch)"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic


enter image description here







share|improve this question




















  • possible duplicate of this and this
    – ptetteh227
    Apr 30 at 8:51













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I follow this and this to change the default application. But it does not work.



I try to change to Text Editor as default application to open xml file but it does not change. By default it is firefox.




cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu Bionic Beaver (development branch)"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic


enter image description here







share|improve this question












I follow this and this to change the default application. But it does not work.



I try to change to Text Editor as default application to open xml file but it does not change. By default it is firefox.




cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu Bionic Beaver (development branch)"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic


enter image description here









share|improve this question











share|improve this question




share|improve this question










asked Apr 30 at 8:42









Dipankar Nalui

13929




13929











  • possible duplicate of this and this
    – ptetteh227
    Apr 30 at 8:51

















  • possible duplicate of this and this
    – ptetteh227
    Apr 30 at 8:51
















possible duplicate of this and this
– ptetteh227
Apr 30 at 8:51





possible duplicate of this and this
– ptetteh227
Apr 30 at 8:51











1 Answer
1






active

oldest

votes

















up vote
1
down vote













Problem:




sellerp18@sellerp18-MS-7788:~/Desktop/pm_new$ cat -n ~/.config/mimeapps.list | grep xml
7 text/xml=firefox.desktop
8 application/xhtml+xml=firefox.desktop
9 application/rss+xml=firefox.desktop
10 application/rdf+xml=firefox.desktop
82 image/svg+xml=eog.desktop
83 image/svg+xml-compressed=eog.desktop
140 application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop
143 application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop
149 application/xml=org.gnome.gedit.desktop
152 text/xml=firefox.desktop;
153 application/rss+xml=firefox.desktop;
154 application/rdf+xml=firefox.desktop;
223 image/svg+xml=eog.desktop;
224 image/svg+xml-compressed=eog.desktop;
272 application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop;
275 application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop;
283 application/xml=sublime-text.desktop;libreoffice-writer.desktop;



Solution:



I executed the following command to remove the default application from the file ~/.config/mimeapps.list




sed -i '/xml/d' ~/.config/mimeapps.list


After that, right-click on a .xml file, choose Properties, and click the "Open with" tab.






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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f1030019%2fhow-to-change-the-default-application-to-open-xml-file-in-ubuntu-bionic-beaver%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













    Problem:




    sellerp18@sellerp18-MS-7788:~/Desktop/pm_new$ cat -n ~/.config/mimeapps.list | grep xml
    7 text/xml=firefox.desktop
    8 application/xhtml+xml=firefox.desktop
    9 application/rss+xml=firefox.desktop
    10 application/rdf+xml=firefox.desktop
    82 image/svg+xml=eog.desktop
    83 image/svg+xml-compressed=eog.desktop
    140 application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop
    143 application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop
    149 application/xml=org.gnome.gedit.desktop
    152 text/xml=firefox.desktop;
    153 application/rss+xml=firefox.desktop;
    154 application/rdf+xml=firefox.desktop;
    223 image/svg+xml=eog.desktop;
    224 image/svg+xml-compressed=eog.desktop;
    272 application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop;
    275 application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop;
    283 application/xml=sublime-text.desktop;libreoffice-writer.desktop;



    Solution:



    I executed the following command to remove the default application from the file ~/.config/mimeapps.list




    sed -i '/xml/d' ~/.config/mimeapps.list


    After that, right-click on a .xml file, choose Properties, and click the "Open with" tab.






    share|improve this answer
























      up vote
      1
      down vote













      Problem:




      sellerp18@sellerp18-MS-7788:~/Desktop/pm_new$ cat -n ~/.config/mimeapps.list | grep xml
      7 text/xml=firefox.desktop
      8 application/xhtml+xml=firefox.desktop
      9 application/rss+xml=firefox.desktop
      10 application/rdf+xml=firefox.desktop
      82 image/svg+xml=eog.desktop
      83 image/svg+xml-compressed=eog.desktop
      140 application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop
      143 application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop
      149 application/xml=org.gnome.gedit.desktop
      152 text/xml=firefox.desktop;
      153 application/rss+xml=firefox.desktop;
      154 application/rdf+xml=firefox.desktop;
      223 image/svg+xml=eog.desktop;
      224 image/svg+xml-compressed=eog.desktop;
      272 application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop;
      275 application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop;
      283 application/xml=sublime-text.desktop;libreoffice-writer.desktop;



      Solution:



      I executed the following command to remove the default application from the file ~/.config/mimeapps.list




      sed -i '/xml/d' ~/.config/mimeapps.list


      After that, right-click on a .xml file, choose Properties, and click the "Open with" tab.






      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        Problem:




        sellerp18@sellerp18-MS-7788:~/Desktop/pm_new$ cat -n ~/.config/mimeapps.list | grep xml
        7 text/xml=firefox.desktop
        8 application/xhtml+xml=firefox.desktop
        9 application/rss+xml=firefox.desktop
        10 application/rdf+xml=firefox.desktop
        82 image/svg+xml=eog.desktop
        83 image/svg+xml-compressed=eog.desktop
        140 application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop
        143 application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop
        149 application/xml=org.gnome.gedit.desktop
        152 text/xml=firefox.desktop;
        153 application/rss+xml=firefox.desktop;
        154 application/rdf+xml=firefox.desktop;
        223 image/svg+xml=eog.desktop;
        224 image/svg+xml-compressed=eog.desktop;
        272 application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop;
        275 application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop;
        283 application/xml=sublime-text.desktop;libreoffice-writer.desktop;



        Solution:



        I executed the following command to remove the default application from the file ~/.config/mimeapps.list




        sed -i '/xml/d' ~/.config/mimeapps.list


        After that, right-click on a .xml file, choose Properties, and click the "Open with" tab.






        share|improve this answer












        Problem:




        sellerp18@sellerp18-MS-7788:~/Desktop/pm_new$ cat -n ~/.config/mimeapps.list | grep xml
        7 text/xml=firefox.desktop
        8 application/xhtml+xml=firefox.desktop
        9 application/rss+xml=firefox.desktop
        10 application/rdf+xml=firefox.desktop
        82 image/svg+xml=eog.desktop
        83 image/svg+xml-compressed=eog.desktop
        140 application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop
        143 application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop
        149 application/xml=org.gnome.gedit.desktop
        152 text/xml=firefox.desktop;
        153 application/rss+xml=firefox.desktop;
        154 application/rdf+xml=firefox.desktop;
        223 image/svg+xml=eog.desktop;
        224 image/svg+xml-compressed=eog.desktop;
        272 application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop;
        275 application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=libreoffice-calc.desktop;
        283 application/xml=sublime-text.desktop;libreoffice-writer.desktop;



        Solution:



        I executed the following command to remove the default application from the file ~/.config/mimeapps.list




        sed -i '/xml/d' ~/.config/mimeapps.list


        After that, right-click on a .xml file, choose Properties, and click the "Open with" tab.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 30 at 9:08









        Dipankar Nalui

        13929




        13929



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1030019%2fhow-to-change-the-default-application-to-open-xml-file-in-ubuntu-bionic-beaver%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491