Skip to content

Instantly share code, notes, and snippets.

@frgaudet
Created December 2, 2014 09:05
Show Gist options
  • Save frgaudet/4a373ace85703ee6e7a5 to your computer and use it in GitHub Desktop.
Save frgaudet/4a373ace85703ee6e7a5 to your computer and use it in GitHub Desktop.
How to make VLC your default video application
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