Change Default Applications from Script [duplicate]

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








up vote
3
down vote

favorite
1













This question already has an answer here:



  • How do I set the default program?

    9 answers



How can I change the default applications from the command line (specifically from a script) in Ubuntu 18.04?



The link below describes setting the default applications from the GUI, and also by editing ~/.local/share/applications/mimeapps.list. However, it appears mimeapps.list has been moved or is no longer present in Ubuntu 18.04.



See, e.g.,
How do I set the default program?







share|improve this question














marked as duplicate by David Foerster, waltinator, Kevin Bowen, user535733, user364819 Jul 1 at 6:22


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    Have you tried to create the file in question?
    – David Foerster
    Jun 25 at 21:33














up vote
3
down vote

favorite
1













This question already has an answer here:



  • How do I set the default program?

    9 answers



How can I change the default applications from the command line (specifically from a script) in Ubuntu 18.04?



The link below describes setting the default applications from the GUI, and also by editing ~/.local/share/applications/mimeapps.list. However, it appears mimeapps.list has been moved or is no longer present in Ubuntu 18.04.



See, e.g.,
How do I set the default program?







share|improve this question














marked as duplicate by David Foerster, waltinator, Kevin Bowen, user535733, user364819 Jul 1 at 6:22


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    Have you tried to create the file in question?
    – David Foerster
    Jun 25 at 21:33












up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1






This question already has an answer here:



  • How do I set the default program?

    9 answers



How can I change the default applications from the command line (specifically from a script) in Ubuntu 18.04?



The link below describes setting the default applications from the GUI, and also by editing ~/.local/share/applications/mimeapps.list. However, it appears mimeapps.list has been moved or is no longer present in Ubuntu 18.04.



See, e.g.,
How do I set the default program?







share|improve this question















This question already has an answer here:



  • How do I set the default program?

    9 answers



How can I change the default applications from the command line (specifically from a script) in Ubuntu 18.04?



The link below describes setting the default applications from the GUI, and also by editing ~/.local/share/applications/mimeapps.list. However, it appears mimeapps.list has been moved or is no longer present in Ubuntu 18.04.



See, e.g.,
How do I set the default program?





This question already has an answer here:



  • How do I set the default program?

    9 answers









share|improve this question













share|improve this question




share|improve this question








edited Jun 25 at 21:31









David Foerster

26k1361106




26k1361106










asked Apr 30 at 19:34









user2514157

707




707




marked as duplicate by David Foerster, waltinator, Kevin Bowen, user535733, user364819 Jul 1 at 6:22


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by David Foerster, waltinator, Kevin Bowen, user535733, user364819 Jul 1 at 6:22


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









  • 1




    Have you tried to create the file in question?
    – David Foerster
    Jun 25 at 21:33












  • 1




    Have you tried to create the file in question?
    – David Foerster
    Jun 25 at 21:33







1




1




Have you tried to create the file in question?
– David Foerster
Jun 25 at 21:33




Have you tried to create the file in question?
– David Foerster
Jun 25 at 21:33










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










After using my system for some time, it appears one of my programs caused the file to be created at ~/.config/mimeapps.list



sudo find / -name "mimeapps.list"

cat ~/.config/mimeapps.list

[Added Associations]
image/jpeg=gimp.desktop;
text/x-java=eclipse_eclipse.desktop;
application/json=sublime_text.desktop;
application/rdf+xml=sublime_text.desktop;
text/x-python=sublime_text.desktop;
video/mp4=vlc.desktop;
application/octet-stream=org.gnome.Software.desktop;
application/pdf=evince.desktop;
text/html=org.gnome.gedit.desktop;
text/plain=firefox.desktop;

[Default Applications]
application/ppdf=FoxitReader.desktop
application/octet-stream=FoxitReader.desktop
application/pdf=FoxitReader.desktop





share|improve this answer



























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote



    accepted










    After using my system for some time, it appears one of my programs caused the file to be created at ~/.config/mimeapps.list



    sudo find / -name "mimeapps.list"

    cat ~/.config/mimeapps.list

    [Added Associations]
    image/jpeg=gimp.desktop;
    text/x-java=eclipse_eclipse.desktop;
    application/json=sublime_text.desktop;
    application/rdf+xml=sublime_text.desktop;
    text/x-python=sublime_text.desktop;
    video/mp4=vlc.desktop;
    application/octet-stream=org.gnome.Software.desktop;
    application/pdf=evince.desktop;
    text/html=org.gnome.gedit.desktop;
    text/plain=firefox.desktop;

    [Default Applications]
    application/ppdf=FoxitReader.desktop
    application/octet-stream=FoxitReader.desktop
    application/pdf=FoxitReader.desktop





    share|improve this answer
























      up vote
      0
      down vote



      accepted










      After using my system for some time, it appears one of my programs caused the file to be created at ~/.config/mimeapps.list



      sudo find / -name "mimeapps.list"

      cat ~/.config/mimeapps.list

      [Added Associations]
      image/jpeg=gimp.desktop;
      text/x-java=eclipse_eclipse.desktop;
      application/json=sublime_text.desktop;
      application/rdf+xml=sublime_text.desktop;
      text/x-python=sublime_text.desktop;
      video/mp4=vlc.desktop;
      application/octet-stream=org.gnome.Software.desktop;
      application/pdf=evince.desktop;
      text/html=org.gnome.gedit.desktop;
      text/plain=firefox.desktop;

      [Default Applications]
      application/ppdf=FoxitReader.desktop
      application/octet-stream=FoxitReader.desktop
      application/pdf=FoxitReader.desktop





      share|improve this answer






















        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        After using my system for some time, it appears one of my programs caused the file to be created at ~/.config/mimeapps.list



        sudo find / -name "mimeapps.list"

        cat ~/.config/mimeapps.list

        [Added Associations]
        image/jpeg=gimp.desktop;
        text/x-java=eclipse_eclipse.desktop;
        application/json=sublime_text.desktop;
        application/rdf+xml=sublime_text.desktop;
        text/x-python=sublime_text.desktop;
        video/mp4=vlc.desktop;
        application/octet-stream=org.gnome.Software.desktop;
        application/pdf=evince.desktop;
        text/html=org.gnome.gedit.desktop;
        text/plain=firefox.desktop;

        [Default Applications]
        application/ppdf=FoxitReader.desktop
        application/octet-stream=FoxitReader.desktop
        application/pdf=FoxitReader.desktop





        share|improve this answer












        After using my system for some time, it appears one of my programs caused the file to be created at ~/.config/mimeapps.list



        sudo find / -name "mimeapps.list"

        cat ~/.config/mimeapps.list

        [Added Associations]
        image/jpeg=gimp.desktop;
        text/x-java=eclipse_eclipse.desktop;
        application/json=sublime_text.desktop;
        application/rdf+xml=sublime_text.desktop;
        text/x-python=sublime_text.desktop;
        video/mp4=vlc.desktop;
        application/octet-stream=org.gnome.Software.desktop;
        application/pdf=evince.desktop;
        text/html=org.gnome.gedit.desktop;
        text/plain=firefox.desktop;

        [Default Applications]
        application/ppdf=FoxitReader.desktop
        application/octet-stream=FoxitReader.desktop
        application/pdf=FoxitReader.desktop






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 28 at 11:51









        user2514157

        707




        707












            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491