How to Change Default Apps in Ubuntu
Default apps in Ubuntu decide which program opens when you double-click a file or click a link. A video file opens in a media player, a web link opens in a browser, and a text file opens in an editor. Ubuntu picks these programs for you at install time, but you can change any of them.
Ubuntu 22.04 LTS and newer releases let you change the common defaults in the Settings app. For other file types, you can use the file’s Properties window in the Files app. Neither method needs a restart. The new choice applies the next time you open a file of that type.
Open Settings from the system menu in the top-right corner, choose Default Applications, and pick a program from the drop-down for web, mail, music, video or photos. The choice saves as soon as you select it, with no restart needed. For other file types, right-click a file in the Files app, select Properties, then use Open With and click Set as default.
How to change the default program for file types in Ubuntu Linux
The short version is this. Open the Settings app, go to the Default Applications section, and choose your preferred program from the drop-down menus for web browsing, email and other file types. For anything not listed there, use the Properties window of a file, which this guide covers in the second half.
Most configuration options live inside the main Settings app. You reach it through the system menu in the top-right corner of the desktop, the area with the network, volume and power icons.

- Click the system menu in the top-right corner of the screen.
A panel drops down with quick toggles, the volume and brightness sliders, and buttons for settings and power options. Settings is the one you need, because it is where you pick the preferred applications for specific file types.
- On the system menu, select Settings, as highlighted below.
The Settings window opens, with a list of categories down the left side.

- Click Default Applications in the Settings app. If you can’t see it, scroll down the left-hand list.
The right-hand pane now shows the default applications for the main file types, each with its own drop-down menu.

- Find the category you want to change, such as web, mail, music, video or photos.
- Click its drop-down menu and pick the program you want to use.
The choice is saved as soon as you select it. There is no Apply or OK button to press.
Some file types can be opened by several programs. The list under each drop-down shows the installed programs that can handle that type. Choosing one from the list makes it the default. To go back, open the same drop-down and select the original program again.

- Open the Files app and browse to a file of the type you want to change.
- Right-click the file, then select Properties.

- Select the Open With tab.
You should see a list of programs that can open this type of file. The current default is highlighted.

- Click the application you want to use.
- Click Set as default.
This changes the default for every file of that type, not just the one you right-clicked. Double-click a similar file afterward to confirm it opens in the new program.

The list may also have an Other Applications section. If it contains a program you sometimes want to use but don’t want as the default, you can add it as an option without changing the default.
- Select the application under Other Applications.
- Click Add.
The program now appears under Recommended Applications. It will show up in the right-click Open With menu for that file type, while your default stays the same.
That completes the process. If a file still opens in the wrong program, check that you changed the right file type. A .txt file and a .doc file, for example, have separate defaults.
Conclusion:
- Changing the default application for a file type in Ubuntu saves you from picking the same program by hand every time you open a file.
- Whether you want a specific music player for MP3 files or a particular editor for text documents, you can set it in Settings or in a file’s Properties window.
- Follow the steps in this post to change and manage the default applications on your Ubuntu system. You can switch back at any time.
Have a question about this guide?
Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!