PDA

View Full Version : [ubuntu] [SOLVED] How to make VLC default for all video



0xnate
December 14th, 2008, 08:57 PM
Just wondering if there was a way to make VLC the default video player without selecting for each different file type as i get them...

Also, if I change the properties for one .avi to open with vlc, will it affect all future avi files?

mc4man
December 14th, 2008, 09:12 PM
For the left click or double left click on files you'll need to set each file extension once thru it's properties -> open with.

From then on all files with the same ext. will open with what you set.

You also have available the r. click 'open with', you add choices to that menu by contining on to 'open with other application' and picking apps.

All apps you pick (thru repeating the process) will start showing up on the r. click 'open with' menu.

You can also create custom commands to be available in the r. click 'open with.


edit: the right click is a much more useful tool, the left click is a one shot deal

Izek
December 14th, 2008, 09:12 PM
>> Answered Above <<

u-slayer
October 29th, 2009, 05:19 AM
For the left click or double left click on files you'll need to set each file extension once thru it's properties -> open with.

From then on all files with the same ext. will open with what you set.

You also have available the r. click 'open with', you add choices to that menu by contining on to 'open with other application' and picking apps.

All apps you pick (thru repeating the process) will start showing up on the r. click 'open with' menu.

You can also create custom commands to be available in the r. click 'open with.


edit: the right click is a much more useful tool, the left click is a one shot deal


There is a much faster way do set this for ALL file types:


cp '/usr/share/applications/vlc.desktop' '/usr/share/applications/totem.desktop'

x7q
October 31st, 2009, 03:43 PM
There is a much faster way do set this for ALL file types:


cp '/usr/share/applications/vlc.desktop' '/usr/share/applications/totem.desktop'
That's kind of ugly, don't you think?

User's file associations are stored in ~/.local/share/applications/mimeapps.list

You can make VLC your default player instead of totem for all media files by editing it with a command like this:

F=~/.local/share/applications/mimeapps.list
if [ ! -f $F ]; then echo '[Added Associations]' >$F; fi
grep '=totem.desktop$' /usr/share/applications/defaults.list | sed -e 's/=totem.desktop$/=vlc.desktop;/' >> $F