how to change which application opens a file

Change Default App for Opening Files: A Step-by-Step Guide

By Kevin Jones
AD

Ever found yourself double-clicking a file, only to have the wrong application open it? Perhaps you've been trying to view a PDF in your preferred reader, but it keeps opening in a browser. Fear not, changing the default application for specific file types is a breeze. Let's dive into this guide to help you customize your file associations.

Before we start, remember that the process varies slightly depending on your operating system. This guide will cover Windows 10, macOS, and Linux (Ubuntu). Each section will provide step-by-step instructions tailored to the platform.

Changing Default Applications on Windows 10

Windows 10 allows you to set default apps for specific file types, or choose an app on a case-by-case basis. Here's how you can change the defaults.

AD
How to Change Which App Opens a File on Android
How to Change Which App Opens a File on Android
How to Open ZIP Files
How to Open ZIP Files
How to Change a File Extension in Windows
How to Change a File Extension in Windows

To change default apps for all files of a certain type, follow these steps:

Method 1: Control Panel

1. Open the Control Panel (View by: Large icons, then click Default Programs).

Ways to Remove Read-Only From All Files in a Folder: Fast Fix
Ways to Remove Read-Only From All Files in a Folder: Fast Fix
How to Prompt user to open Word Document in read only mode.
How to Prompt user to open Word Document in read only mode.
How to change the default app to open specific file types on Mac — iDownloadBlog
How to change the default app to open specific file types on Mac — iDownloadBlog

2. Click on "Set your default programs".

Method 2: File Properties

1. Right-click on a file with the extension you want to change (e.g., .pdf).

AD

2. Click on "Open with" > "Choose default program".

How to change the default apps for opening files in Firefox
How to change the default apps for opening files in Firefox
How to open a zip file
How to open a zip file
Easy How To Open Zip Files From Etsy Download 2024
Easy How To Open Zip Files From Etsy Download 2024
How to change the folder icon?
How to change the folder icon?
How to Optimize Windows 11 File Explorer (Speed & Layout Fixes)
How to Optimize Windows 11 File Explorer (Speed & Layout Fixes)
Debra D's Blog
Debra D's Blog

macOS offers a straightforward way to change the default application for a file type. Here's how:

Changing Default Applications on macOS

1. Open Finder and navigate to a file of the type you want to change.

AD

2. Right-click on the file and select "Get Info".

How To Open File Explorer To This PC | Daves Computer Tips
How To Open File Explorer To This PC | Daves Computer Tips
Create Undeletable Folder Using Command Prompt in Windows 10
Create Undeletable Folder Using Command Prompt in Windows 10
How to Change Default App For File Extension in Windows 11
How to Change Default App For File Extension in Windows 11

Using Launch Services Database

For more precision, you can use the launch services database by typing one of these commands in Terminal:

AD

Method 1: LaunchServices

1. Open Terminal (Applications > Utilities > Terminal).

2. Type `lsregister -domain local -r -f /path/to/your/app.app` and press Enter.

Method 2: Using a Tool

Alternatively, you can use tools like "Default Apps" from the Mac App Store to manage your file associations easily.

For Linux enthusiasts, changing default applications is as simple as editing a text file. Here's how you can do it on Ubuntu:

Changing Default Applications on Ubuntu

Ubuntu uses a plain text configuration file located at `~/.local/share/applications/mimeapps.list`. Here's how to modify it:

Manually Editing the Configuration File

1. Open a text editor like Gedit or nano in your home directory (e.g., `gedit ~/.local/share/applications/mimeapps.list`).

2. Add or modify lines in the following format: `x-scheme-handler/{extension}=your.desired.app`

Using a Tool

Consider using tools like "Mime Types" from the Ubuntu Software Center for visual configuration of your file associations.

Embrace your newfound ability to wrangle file types to your favorite applications! Now, whenever you open a file, you'll know exactly which app will take charge. Happy computing!

AD