Linux Tips: How to add a default startup application for certain files (.i.e by file extension)

Linux Tips: How to add a default startup application for certain files (.i.e by file extension)

If you're using Ubuntu or Linux mint, you might have encountered the situation where your default helper application is not listed (eg: for .doc files).

Step 1:

// In this example, we're trying to open myfile.doc by just clicking on it on the
// desktop.

# mimeopen myfile.doc

You should see something like the below:

Please choose a default application for files of type application/msword

    1) Other...

use application #

Step 2:

// Select the option: Other

# 1

Next, you should see:

use command:

Step 3:

// Type in the full path to your command

use command: /home/mypath/libreoffice/soffice

Next, you should see:

Opening "myfile.doc" with home  (application/msword)

Comments