How to make all filetypes open in a certain program? [duplicate]












1
















This question already has an answer here:




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

    2 answers




I want every filetype to open in Leafpad.



I tried to edit /usr/share/applications/defaults.list to associate file types.
But I want all filetypes to open in a certain program, with maybe something like */*=leafpad.desktop



How to do it?










share|improve this question















marked as duplicate by Charles Green, Eric Carvalho, Thomas, Tom Brossman, RoVo Jan 15 at 12:18


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.



















  • Your question isn't clear. Can you please add more information?

    – user25656
    May 8 '13 at 10:19






  • 1





    I want use a program for any file type

    – Sieuvocmaytinh
    May 8 '13 at 10:45











  • "Every file all open" - for me sound contradictory.

    – Radu Rădeanu
    May 9 '13 at 10:18











  • What you are asking does not make sense. One program to open all file types by default. Open .mp3, .jpg, .c, .ods for example in the same program. There isn't a program that understands all the file formats. The only program that could handle all formats is a hex editor/viewer and I don't see why you want to do this. Or am I "barking up the wrong tree" here? Have I misunderstood the question? If I have please edit the question to make it clear what you want to do and why?

    – Warren Hill
    May 9 '13 at 11:10











  • yes, i want to use text-editor and hex-viewer to open all file types

    – Sieuvocmaytinh
    May 9 '13 at 16:01
















1
















This question already has an answer here:




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

    2 answers




I want every filetype to open in Leafpad.



I tried to edit /usr/share/applications/defaults.list to associate file types.
But I want all filetypes to open in a certain program, with maybe something like */*=leafpad.desktop



How to do it?










share|improve this question















marked as duplicate by Charles Green, Eric Carvalho, Thomas, Tom Brossman, RoVo Jan 15 at 12:18


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.



















  • Your question isn't clear. Can you please add more information?

    – user25656
    May 8 '13 at 10:19






  • 1





    I want use a program for any file type

    – Sieuvocmaytinh
    May 8 '13 at 10:45











  • "Every file all open" - for me sound contradictory.

    – Radu Rădeanu
    May 9 '13 at 10:18











  • What you are asking does not make sense. One program to open all file types by default. Open .mp3, .jpg, .c, .ods for example in the same program. There isn't a program that understands all the file formats. The only program that could handle all formats is a hex editor/viewer and I don't see why you want to do this. Or am I "barking up the wrong tree" here? Have I misunderstood the question? If I have please edit the question to make it clear what you want to do and why?

    – Warren Hill
    May 9 '13 at 11:10











  • yes, i want to use text-editor and hex-viewer to open all file types

    – Sieuvocmaytinh
    May 9 '13 at 16:01














1












1








1









This question already has an answer here:




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

    2 answers




I want every filetype to open in Leafpad.



I tried to edit /usr/share/applications/defaults.list to associate file types.
But I want all filetypes to open in a certain program, with maybe something like */*=leafpad.desktop



How to do it?










share|improve this question

















This question already has an answer here:




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

    2 answers




I want every filetype to open in Leafpad.



I tried to edit /usr/share/applications/defaults.list to associate file types.
But I want all filetypes to open in a certain program, with maybe something like */*=leafpad.desktop



How to do it?





This question already has an answer here:




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

    2 answers








mime-type file-association






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 9 '13 at 10:31









stomstack

2,77221032




2,77221032










asked May 8 '13 at 9:56









SieuvocmaytinhSieuvocmaytinh

62




62




marked as duplicate by Charles Green, Eric Carvalho, Thomas, Tom Brossman, RoVo Jan 15 at 12:18


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 Charles Green, Eric Carvalho, Thomas, Tom Brossman, RoVo Jan 15 at 12:18


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.















  • Your question isn't clear. Can you please add more information?

    – user25656
    May 8 '13 at 10:19






  • 1





    I want use a program for any file type

    – Sieuvocmaytinh
    May 8 '13 at 10:45











  • "Every file all open" - for me sound contradictory.

    – Radu Rădeanu
    May 9 '13 at 10:18











  • What you are asking does not make sense. One program to open all file types by default. Open .mp3, .jpg, .c, .ods for example in the same program. There isn't a program that understands all the file formats. The only program that could handle all formats is a hex editor/viewer and I don't see why you want to do this. Or am I "barking up the wrong tree" here? Have I misunderstood the question? If I have please edit the question to make it clear what you want to do and why?

    – Warren Hill
    May 9 '13 at 11:10











  • yes, i want to use text-editor and hex-viewer to open all file types

    – Sieuvocmaytinh
    May 9 '13 at 16:01



















  • Your question isn't clear. Can you please add more information?

    – user25656
    May 8 '13 at 10:19






  • 1





    I want use a program for any file type

    – Sieuvocmaytinh
    May 8 '13 at 10:45











  • "Every file all open" - for me sound contradictory.

    – Radu Rădeanu
    May 9 '13 at 10:18











  • What you are asking does not make sense. One program to open all file types by default. Open .mp3, .jpg, .c, .ods for example in the same program. There isn't a program that understands all the file formats. The only program that could handle all formats is a hex editor/viewer and I don't see why you want to do this. Or am I "barking up the wrong tree" here? Have I misunderstood the question? If I have please edit the question to make it clear what you want to do and why?

    – Warren Hill
    May 9 '13 at 11:10











  • yes, i want to use text-editor and hex-viewer to open all file types

    – Sieuvocmaytinh
    May 9 '13 at 16:01

















Your question isn't clear. Can you please add more information?

– user25656
May 8 '13 at 10:19





Your question isn't clear. Can you please add more information?

– user25656
May 8 '13 at 10:19




1




1





I want use a program for any file type

– Sieuvocmaytinh
May 8 '13 at 10:45





I want use a program for any file type

– Sieuvocmaytinh
May 8 '13 at 10:45













"Every file all open" - for me sound contradictory.

– Radu Rădeanu
May 9 '13 at 10:18





"Every file all open" - for me sound contradictory.

– Radu Rădeanu
May 9 '13 at 10:18













What you are asking does not make sense. One program to open all file types by default. Open .mp3, .jpg, .c, .ods for example in the same program. There isn't a program that understands all the file formats. The only program that could handle all formats is a hex editor/viewer and I don't see why you want to do this. Or am I "barking up the wrong tree" here? Have I misunderstood the question? If I have please edit the question to make it clear what you want to do and why?

– Warren Hill
May 9 '13 at 11:10





What you are asking does not make sense. One program to open all file types by default. Open .mp3, .jpg, .c, .ods for example in the same program. There isn't a program that understands all the file formats. The only program that could handle all formats is a hex editor/viewer and I don't see why you want to do this. Or am I "barking up the wrong tree" here? Have I misunderstood the question? If I have please edit the question to make it clear what you want to do and why?

– Warren Hill
May 9 '13 at 11:10













yes, i want to use text-editor and hex-viewer to open all file types

– Sieuvocmaytinh
May 9 '13 at 16:01





yes, i want to use text-editor and hex-viewer to open all file types

– Sieuvocmaytinh
May 9 '13 at 16:01










2 Answers
2






active

oldest

votes


















1














One method could be to go to System settings > Details > Default applications:



enter image description here



Another method can be to right click on the file that you want to associate with a program and select Open with (> Other application...) or select Properties > Open with tab (I think this is the best option) and the rest is pretty self-explanatory. If you, for example, set one MP3 to be opened by the program VLC, then all MP3s would be opened by VLC when double-clicked.



And finally (but not the last one), and, in fact, this I think is what you are looking, another method could be to use assoGiate program - a file types editor. To install it from Terminal, use next command:



sudo apt-get install assogiate


assoGiate






share|improve this answer


























  • I want not associate for some file type, i want to associate only one program for every file

    – Sieuvocmaytinh
    May 9 '13 at 9:59






  • 1





    Your question is totally unclear. It's like "I want to associate a word for every grain of sand", sincerely.

    – Radu Rădeanu
    May 9 '13 at 10:13











  • @Sieuvocmaytinh Then make that clear! Your question is totally unclear. I edited your question now to clarify.

    – stomstack
    May 9 '13 at 10:32











  • i want to use text-editor and hex-viewer to open all file types

    – Sieuvocmaytinh
    May 15 '13 at 6:56











  • @Sieuvocmaytinh "Another method can be to right click on the file that you want to associate with a program and select Open with (> Other application...) or select Properties > Open with tab". And I think hex-viewer is a windows based program.

    – Radu Rădeanu
    May 15 '13 at 9:08



















0














For me, with gnome applications like Dolphin, editing my ~/.local/share/applications/mimeapps.list under the [Default Applications] section I added application/octet-stream=ghex.desktop;



GHex is now an option with unassocated and "Open With" for associated files.



Alternatively on a global scale I edited the ghex .desktop file /usr/share/applications/ghex.desktop as root/sudo to add the line MimeType=application/octet-stream; anywhere (at the end)



I, too, thought */* should have worked but it doesn't.






share|improve this answer






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    One method could be to go to System settings > Details > Default applications:



    enter image description here



    Another method can be to right click on the file that you want to associate with a program and select Open with (> Other application...) or select Properties > Open with tab (I think this is the best option) and the rest is pretty self-explanatory. If you, for example, set one MP3 to be opened by the program VLC, then all MP3s would be opened by VLC when double-clicked.



    And finally (but not the last one), and, in fact, this I think is what you are looking, another method could be to use assoGiate program - a file types editor. To install it from Terminal, use next command:



    sudo apt-get install assogiate


    assoGiate






    share|improve this answer


























    • I want not associate for some file type, i want to associate only one program for every file

      – Sieuvocmaytinh
      May 9 '13 at 9:59






    • 1





      Your question is totally unclear. It's like "I want to associate a word for every grain of sand", sincerely.

      – Radu Rădeanu
      May 9 '13 at 10:13











    • @Sieuvocmaytinh Then make that clear! Your question is totally unclear. I edited your question now to clarify.

      – stomstack
      May 9 '13 at 10:32











    • i want to use text-editor and hex-viewer to open all file types

      – Sieuvocmaytinh
      May 15 '13 at 6:56











    • @Sieuvocmaytinh "Another method can be to right click on the file that you want to associate with a program and select Open with (> Other application...) or select Properties > Open with tab". And I think hex-viewer is a windows based program.

      – Radu Rădeanu
      May 15 '13 at 9:08
















    1














    One method could be to go to System settings > Details > Default applications:



    enter image description here



    Another method can be to right click on the file that you want to associate with a program and select Open with (> Other application...) or select Properties > Open with tab (I think this is the best option) and the rest is pretty self-explanatory. If you, for example, set one MP3 to be opened by the program VLC, then all MP3s would be opened by VLC when double-clicked.



    And finally (but not the last one), and, in fact, this I think is what you are looking, another method could be to use assoGiate program - a file types editor. To install it from Terminal, use next command:



    sudo apt-get install assogiate


    assoGiate






    share|improve this answer


























    • I want not associate for some file type, i want to associate only one program for every file

      – Sieuvocmaytinh
      May 9 '13 at 9:59






    • 1





      Your question is totally unclear. It's like "I want to associate a word for every grain of sand", sincerely.

      – Radu Rădeanu
      May 9 '13 at 10:13











    • @Sieuvocmaytinh Then make that clear! Your question is totally unclear. I edited your question now to clarify.

      – stomstack
      May 9 '13 at 10:32











    • i want to use text-editor and hex-viewer to open all file types

      – Sieuvocmaytinh
      May 15 '13 at 6:56











    • @Sieuvocmaytinh "Another method can be to right click on the file that you want to associate with a program and select Open with (> Other application...) or select Properties > Open with tab". And I think hex-viewer is a windows based program.

      – Radu Rădeanu
      May 15 '13 at 9:08














    1












    1








    1







    One method could be to go to System settings > Details > Default applications:



    enter image description here



    Another method can be to right click on the file that you want to associate with a program and select Open with (> Other application...) or select Properties > Open with tab (I think this is the best option) and the rest is pretty self-explanatory. If you, for example, set one MP3 to be opened by the program VLC, then all MP3s would be opened by VLC when double-clicked.



    And finally (but not the last one), and, in fact, this I think is what you are looking, another method could be to use assoGiate program - a file types editor. To install it from Terminal, use next command:



    sudo apt-get install assogiate


    assoGiate






    share|improve this answer















    One method could be to go to System settings > Details > Default applications:



    enter image description here



    Another method can be to right click on the file that you want to associate with a program and select Open with (> Other application...) or select Properties > Open with tab (I think this is the best option) and the rest is pretty self-explanatory. If you, for example, set one MP3 to be opened by the program VLC, then all MP3s would be opened by VLC when double-clicked.



    And finally (but not the last one), and, in fact, this I think is what you are looking, another method could be to use assoGiate program - a file types editor. To install it from Terminal, use next command:



    sudo apt-get install assogiate


    assoGiate







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited May 8 '13 at 11:00

























    answered May 8 '13 at 10:32









    Radu RădeanuRadu Rădeanu

    118k34247325




    118k34247325













    • I want not associate for some file type, i want to associate only one program for every file

      – Sieuvocmaytinh
      May 9 '13 at 9:59






    • 1





      Your question is totally unclear. It's like "I want to associate a word for every grain of sand", sincerely.

      – Radu Rădeanu
      May 9 '13 at 10:13











    • @Sieuvocmaytinh Then make that clear! Your question is totally unclear. I edited your question now to clarify.

      – stomstack
      May 9 '13 at 10:32











    • i want to use text-editor and hex-viewer to open all file types

      – Sieuvocmaytinh
      May 15 '13 at 6:56











    • @Sieuvocmaytinh "Another method can be to right click on the file that you want to associate with a program and select Open with (> Other application...) or select Properties > Open with tab". And I think hex-viewer is a windows based program.

      – Radu Rădeanu
      May 15 '13 at 9:08



















    • I want not associate for some file type, i want to associate only one program for every file

      – Sieuvocmaytinh
      May 9 '13 at 9:59






    • 1





      Your question is totally unclear. It's like "I want to associate a word for every grain of sand", sincerely.

      – Radu Rădeanu
      May 9 '13 at 10:13











    • @Sieuvocmaytinh Then make that clear! Your question is totally unclear. I edited your question now to clarify.

      – stomstack
      May 9 '13 at 10:32











    • i want to use text-editor and hex-viewer to open all file types

      – Sieuvocmaytinh
      May 15 '13 at 6:56











    • @Sieuvocmaytinh "Another method can be to right click on the file that you want to associate with a program and select Open with (> Other application...) or select Properties > Open with tab". And I think hex-viewer is a windows based program.

      – Radu Rădeanu
      May 15 '13 at 9:08

















    I want not associate for some file type, i want to associate only one program for every file

    – Sieuvocmaytinh
    May 9 '13 at 9:59





    I want not associate for some file type, i want to associate only one program for every file

    – Sieuvocmaytinh
    May 9 '13 at 9:59




    1




    1





    Your question is totally unclear. It's like "I want to associate a word for every grain of sand", sincerely.

    – Radu Rădeanu
    May 9 '13 at 10:13





    Your question is totally unclear. It's like "I want to associate a word for every grain of sand", sincerely.

    – Radu Rădeanu
    May 9 '13 at 10:13













    @Sieuvocmaytinh Then make that clear! Your question is totally unclear. I edited your question now to clarify.

    – stomstack
    May 9 '13 at 10:32





    @Sieuvocmaytinh Then make that clear! Your question is totally unclear. I edited your question now to clarify.

    – stomstack
    May 9 '13 at 10:32













    i want to use text-editor and hex-viewer to open all file types

    – Sieuvocmaytinh
    May 15 '13 at 6:56





    i want to use text-editor and hex-viewer to open all file types

    – Sieuvocmaytinh
    May 15 '13 at 6:56













    @Sieuvocmaytinh "Another method can be to right click on the file that you want to associate with a program and select Open with (> Other application...) or select Properties > Open with tab". And I think hex-viewer is a windows based program.

    – Radu Rădeanu
    May 15 '13 at 9:08





    @Sieuvocmaytinh "Another method can be to right click on the file that you want to associate with a program and select Open with (> Other application...) or select Properties > Open with tab". And I think hex-viewer is a windows based program.

    – Radu Rădeanu
    May 15 '13 at 9:08













    0














    For me, with gnome applications like Dolphin, editing my ~/.local/share/applications/mimeapps.list under the [Default Applications] section I added application/octet-stream=ghex.desktop;



    GHex is now an option with unassocated and "Open With" for associated files.



    Alternatively on a global scale I edited the ghex .desktop file /usr/share/applications/ghex.desktop as root/sudo to add the line MimeType=application/octet-stream; anywhere (at the end)



    I, too, thought */* should have worked but it doesn't.






    share|improve this answer




























      0














      For me, with gnome applications like Dolphin, editing my ~/.local/share/applications/mimeapps.list under the [Default Applications] section I added application/octet-stream=ghex.desktop;



      GHex is now an option with unassocated and "Open With" for associated files.



      Alternatively on a global scale I edited the ghex .desktop file /usr/share/applications/ghex.desktop as root/sudo to add the line MimeType=application/octet-stream; anywhere (at the end)



      I, too, thought */* should have worked but it doesn't.






      share|improve this answer


























        0












        0








        0







        For me, with gnome applications like Dolphin, editing my ~/.local/share/applications/mimeapps.list under the [Default Applications] section I added application/octet-stream=ghex.desktop;



        GHex is now an option with unassocated and "Open With" for associated files.



        Alternatively on a global scale I edited the ghex .desktop file /usr/share/applications/ghex.desktop as root/sudo to add the line MimeType=application/octet-stream; anywhere (at the end)



        I, too, thought */* should have worked but it doesn't.






        share|improve this answer













        For me, with gnome applications like Dolphin, editing my ~/.local/share/applications/mimeapps.list under the [Default Applications] section I added application/octet-stream=ghex.desktop;



        GHex is now an option with unassocated and "Open With" for associated files.



        Alternatively on a global scale I edited the ghex .desktop file /usr/share/applications/ghex.desktop as root/sudo to add the line MimeType=application/octet-stream; anywhere (at the end)



        I, too, thought */* should have worked but it doesn't.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 26 '15 at 15:21









        EkriirkEEkriirkE

        1012




        1012















            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?