[Solved] Default program

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Gandalf the White

[Solved] Default program

Post 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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 4 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
TheDynamicHamza21
Level 5
Level 5
Posts: 798
Joined: Thu Oct 04, 2012 7:24 pm
Location: California
Contact:

Re: Default program

Post 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.
Linux Registered User: # 573034

Hamza21.com
altair4
Level 20
Level 20
Posts: 11427
Joined: Tue Feb 03, 2009 10:27 am

Re: Default program

Post 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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Gandalf the White

Re: Default program

Post 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.
Locked

Return to “Beginner Questions”