Set VLC as default video player

To set VLC as the default video player for your linux desktop, open a terminal window or press Alt+F2 and enter:

exo-open $HOME/.local/share/applications/mimeapps.list

Your default text editor should be opened and showing the mimeapps.list file.

Look for "[Default Applications]" section (or create it if doesn't exist) and append the following list after the section title:

video/msvideo=vlc.desktop
video/x-msvideo=vlc.desktop
video/x-dv=vlc.desktop
video/vnd.mpegurl=vlc.desktop
video/x-m4v=vlc.desktop
video/quicktime=vlc.desktop
video/x-sgi-movie=vlc.desktop
video/mp4=vlc.desktop
video/mpeg=vlc.desktop
video/vnd.mpegurl=vlc.desktop
video/quicktime=vlc.desktop
video/x-flv=vlc.desktop
video/x-ogm+ogg=vlc.desktop
video/3gpp=vlc.desktop
video/x-mpeg=vlc.desktop
video/x-ms-wmv=vlc.desktop
video/x-ms-asf=vlc.desktop
video/x-matroska=vlc.desktop
video/ogg=vlc.desktop
Note

If some video file type isn't associating with VLC, please tell me so that I can add it to the mime type list.

References

Mime Types
Mime/File Types Test Suite

Comments

  1. Thank u,
    it is was I was looking for.

    ReplyDelete
  2. "Failed to open URI "file:///.local/share/applications/mimeapps.list". No such file or directory"

    I'm on Lubuntu. I had to download exo-utils first to even use exo-open. What now?

    ReplyDelete
    Replies
    1. Try to navigate to that file using your file manager instead.

      Delete

Post a Comment

Popular posts from this blog

[HOW TO] Create QR Codes in Xubuntu 12.04

[FIX] VLC is unable to open the MRL (smb://)

Add items to Xfce Applications Menu