• ARTICLES
SEARCH

How-To Geek

How to Change Your Default Applications on Ubuntu: 4 Ways

image

There are several ways to change your default applications on Ubuntu. Whether you’re changing the default application for a particular task, file type, or a system-level application like your default text editor, there’s a different place to go.

Unlike on Windows, applications won’t take over existing file extensions during the installation process — they’ll just appear as an option after you install them.

Desktop Applications

To set your default desktop applications for actions such as Web Browser, Email, or Video, open the System Settings window from the panel.

image

Select the Details icon in the System Settings window.

image

Select the Default Applications category and use the drop-down boxes to select a default application. Application will appear here after you’ve installed them – for example, you can install VLC and select it as your default video player from here.

image

Removable Media

From the Details control panel, you can also select your default applications for different types of removable media. By default, Ubuntu will ask you what application you want to use when you insert a removable media device. You can change this – for example, you can have Rhythmbox automatically open and play audio CDs when you insert them.

image

File Associations

To set the default application for a specific file type, locate a file of that type in the file manager, right-click it, and select Properties.

image

Click the Open With tab and select the application you want to use for that file type. Use the Set as default button to make the application the default application.

image

Update-Alternatives

Ubuntu uses the update-alternatives system it inherited from Debian to control default applications outside of the graphical desktop. For example, when you run a command that uses a terminal text editor, the command calls /usr/bin/editor. /usr/bin/editor isn’t an editor itself – it’s a symbolic link to an editor on your system. This link points to the nano text editor by default, but you can select a different default text editor with the update-alternatives command. If only one option is available for an alternative – for example, if you only have one Java virtual machine installed – it will be used as the default.

For example, let’s say you wanted to change the system’s default text editor. Run the following command in a terminal:

sudo update-alternatives –config editor

You’ll see a list of installed editors to choose from – type the number of the editor you want to use and press Enter.

image

To go through the choices for every alternative on your system, run the following command:

sudo update-alternatives –all

You’ll only see a prompt if multiple applications that could satisfy an alternative are installed on your system. To keep the default option for an alternative, just press Enter.

image

Chris Hoffman is a technology writer and all-around computer geek. He's as at home using the Linux terminal as he is digging into the Windows registry. Connect with him on Google+.

  • Published 06/29/12

Comments (1)

  1. Dazed_75

    Twice in as many days I have found lexical errors in the cli commands listed in your articles. For readers who copy and paste them, syntax errors result. These are coming from automated character transformations in the editor you use for your blogging.

    In this article, wherever you have a named option that requires double hyphens, your editor is converting them to a single long dash (I don’t know the name for it).

    Yesterday, one of the cli commands included a phrase in single quotes. You editor converted them to non-matching ticks (again, I do not know their proper names).

Enter Your Email Here to Get Access for Free:

Go check your email!