10

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")?

1 Answer 1

8

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

1
  • nice :)! This will come in handy :D
    – RolandiXor
    Jan 15, 2011 at 14:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .