[Solved] Default program

All Gurus once were Newbies
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. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

[Solved] Default program

Postby Gandalf the White on Sun Jan 20, 2013 1:14 am

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 Gandalf the White on Sat Apr 05, 2014 8:13 pm, edited 3 times in total.
OS -LinuxMint 64-bit, Release 17, DE: Cinnamon
Image
Reminder: Add [SOLVED] at the beginning of your original subject header.
User avatar
Gandalf the White
Level 2
Level 2
 
Posts: 84
Joined: Sat Dec 22, 2012 3:21 am
Location: Middle Earth

Linux Mint is funded by ads and donations.
 

Re: Default program

Postby TheDynamicHamza21 on Sun Jan 20, 2013 1:34 am

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

www.domeshotsandfatlaces.com
User avatar
TheDynamicHamza21
Level 5
Level 5
 
Posts: 780
Joined: Thu Oct 04, 2012 7:24 pm
Location: California

Re: Default program

Postby altair4 on Sun Jan 20, 2013 8:59 am

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
Thunar.png (45.7 KiB) Viewed 326 times

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.
altair4
Level 16
Level 16
 
Posts: 6131
Joined: Tue Feb 03, 2009 10:27 am

Re: Default program

Postby Gandalf the White on Sun Jan 20, 2013 1:47 pm

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.
OS -LinuxMint 64-bit, Release 17, DE: Cinnamon
Image
Reminder: Add [SOLVED] at the beginning of your original subject header.
User avatar
Gandalf the White
Level 2
Level 2
 
Posts: 84
Joined: Sat Dec 22, 2012 3:21 am
Location: Middle Earth


Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], CtrlAltDel, Google [Bot] and 20 guests