Talk:Mint Linux Preferred Applications and Mimetype Management

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search

xdg-mime

To set the default application for AVI video files using xdg-mime in Linux Mint Cinnamon, you can follow these steps. Ensure that SMPlayer is installed on your system before proceeding.

Identify the MIME Type:

First, identify the MIME type associated with AVI files. You can use the file command for this purpose:

file --mime-type your_video_file.avi

Replace your_video_file.avi with the actual AVI file you want to check.

Use xdg-mime to Set the Default Application:

Once you have identified the MIME type (e.g., video/avi), use the xdg-mime command to set SMPlayer as the default application for that MIME type:

xdg-mime default smplayer.desktop video/avi

Replace smplayer.desktop with the actual desktop file of SMPlayer, and video/avi with the MIME type you identified.

Update MIME Database:

After setting the default application, you may need to update the MIME database for the changes to take effect:

update-mime-database ~/.local/share/mime

This should set SMPlayer as the default application for AVI video files. Make sure that the desktop file for SMPlayer (smplayer.desktop) is correctly specified in the xdg-mime command. You can locate the desktop file in the /usr/share/applications/ directory.