Omarchy

How-To: Check and Set Default Apps on Omarchy With xdg-mime

Leave a comment

The next Omarchy swaps imv and mpv for Omaview. Whenever a distro changes the default viewer or player, I like to see what actually opens my files, and set it back if I want to. On Omarchy and other Linux desktops, that’s xdg-mime.

1. See what opens a file type

xdg-mime query filetype photo.jpg     # e.g. image/jpeg
xdg-mime query default image/jpeg     # the .desktop file that opens it
xdg-mime query default video/mp4

2. Find the .desktop name you want

ls /usr/share/applications ~/.local/share/applications | grep -i -e mpv -e imv

3. Set it

xdg-mime default mpv.desktop video/mp4 video/x-matroska
xdg-mime default imv.desktop image/jpeg image/png

Your choices go into ~/.config/mimeapps.list, so back that file up before you change anything, and restore it if an update resets things. Try the new default for a while first. You might like it.

God Bless, and May the Source Be with You!

References & Further Reading

Subscribe (RSS) Follow How-Tos via RSS

Leave a note

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.