Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In "Preferences - Preferred Applications" there is a choice of Totem and Rhythmbox (actually it was, before I've uninsulated both of them favouring DeadBeeF for audio, raw mplayer for video and VLC for occasions) and Custom. Can I add a player (VLC for example) to appear in that list, officially recognised as a player application (not just "Custom")?

share|improve this question
add comment

1 Answer

up vote 8 down vote accepted

All the applications that are listed in Preferred Applications are registered in
/usr/share/gnome-control-center/default-apps.

To add VLC to the list of media players,

  1. Create a file called vlc.xml in /usr/share/gnome-control-center/default-apps:
    Hit Alt+F2 and run the following command:

    gksu gedit /usr/share/gnome-control-center/default-apps/vlc.xml
    
  2. Copy and paste the following in that file:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE default-apps SYSTEM "gnome-da-list.dtd">
    <default-apps>
      <media-players>
        <media-player>
          <name>VLC</name>
          <executable>vlc</executable>
          <command>vlc</command>
          <icon-name>vlc</icon-name>
          <run-in-terminal>false</run-in-terminal>
        </media-player>
      </media-players>
    </default-apps>
    


You should now see VLC in the list of multimedia players:

alt text

share|improve this answer
    
nice :)! This will come in handy :D –  RolandiXor Jan 15 '11 at 14:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.