Created
December 2, 2014 09:05
-
-
Save frgaudet/4a373ace85703ee6e7a5 to your computer and use it in GitHub Desktop.
How to make VLC your default video application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep "^MimeType=" /usr/share/applications/vlc.desktop | \ | |
cut -d "=" -f 2 | \ | |
xargs -d ';' -n 1 | \ | |
grep -e "^video/" -e "^x-content/video" | \ | |
xargs -n 1 -I '{}' \ | |
xdg-mime default vlc.desktop '{}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment