Page 1 of 1

[Solved] Default program

Posted: Sun Jan 20, 2013 1:14 am
by Gandalf the White
Is there a way to set the default program that is called up when a file in a File Manager is double clicked?

Example: If a .TXT is opened, I would like it to be opened in the notepad program. However, it seems to open the LibreOffice Writer. I've noticed the Open with option lists LibreOffice Writer at the top of the list of options. I feel that is because it is the first in the list alphabetically. However LibreOffice Writer is a bit of an overkill for a .TXT file.

Thanks for the assist... Gandalf

Re: Default program

Posted: Sun Jan 20, 2013 1:34 am
by TheDynamicHamza21
Gandalf the White wrote:Is there a way to set the default program that is called up when a file in a File Manager is double clicked?

Example: If a .TXT is opened, I would like it to be opened in the notepad program. However, it seems to open the LibreOffice Writer. I've noticed the Open with option lists LibreOffice Writer at the top of the list of options. I feel that is because it is the first in the list alphabetically. However LibreOffice Writer is a bit of an overkill for a .TXT file.

Thanks for the assist... Gandalf

Do you mean notepad as in the Windows program or the default text editor in Cinnamon?

For making something default just right click the file choose properties and on the "Open With" tab choose the default text editor gedit or click the add button and add gedit as default program to open txt files. You can even choose notepad if you have installed.

Re: Default program

Posted: Sun Jan 20, 2013 8:59 am
by altair4
The way I read the original post there are 2 questions:

[1] How do I associate an application with a file type?

There used to be a way to do this in Gnome2 but our Gnome Overlords took it away so what I do is install something they can't touch - the XFCE file manager Thunar:

Code: Select all

sudo apt-get install thunar
Then open Thunar > right click any *.txt file > Open with other application > and you will see this pop-up:
Thunar.png
Once you make the association in Thunar it will apply to everything else.

As a side benefit you will also get another Gnome2 option that has vanished in Gnome3 and that's "Use a Cusom Command" which may be the way you answer question 2 of your post.

[2] How do I associate a Wine application with a file type.

That I do not know as I do not use Wine, sorry.

Re: Default program

Posted: Sun Jan 20, 2013 1:47 pm
by Gandalf the White
Altar, you hit the nail on the head.

sudo apt-get install thunar is just what I was looking for. :idea:

I tested it and it worked. :mrgreen:

Thanks for the assist.