How to make VLC (or any player) the default for all video fi
Posted: 09 Sep 2007 23:13
I've searched the forums in the past, trying to find a way to change the default application that opens video files. The best response I ever found was to right click on the files and manually change the properties.
I find this method slow and tedious. There are 19 different types of video files. Therefore, I have automated the whole thing. ONE line in the terminal will change ALL of your video files so that they open with vlc
Code:
By the way, this also works for Image, message, multipart, text, audio, packages and video files.
Just change the word 'video' to one of the above options and change vlc to whatever app you like best.
Tell me if this works for you. I only tested it in ubuntu linux.
I find this method slow and tedious. There are 19 different types of video files. Therefore, I have automated the whole thing. ONE line in the terminal will change ALL of your video files so that they open with vlc
Code:
Code: Select all
cd /usr/share/mime
ls video/* | sed 's/.xml/=vlc.desktop/' | tee -a ~/.local/share/applications/defaults.list
Just change the word 'video' to one of the above options and change vlc to whatever app you like best.
Tell me if this works for you. I only tested it in ubuntu linux.