2 # share/applications/gnome-vlc-default.sh
5 # Copyright (C) 2006, VideoLAN team
6 # Authors: Torsten Spindler
7 # Jean-Paul Saman <jpsaman _at_ videolan dot org>
9 # Set vlc as default player on the gnome desktop
10 # Tested on Ubuntu 6.10 Edgy
13 if test -x /usr
/bin
/gconftool
; then
14 GCONFTOOL
=/usr
/bin
/gconftool
17 if test -x /usr
/bin
/gconftool-2
; then
18 GCONFTOOL
=/usr
/bin
/gconftool-2
19 OPTS
="--type string --set"
21 $GCONFTOOL $OPTS /desktop
/gnome
/volume_manager
/autoplay_vcd_command
"vlc %m"
22 $GCONFTOOL $OPTS /desktop
/gnome
/volume_manager
/autoplay_dvd_command
"vlc %m"
23 $GCONFTOOL $OPTS /desktop
/gnome
/url-handlers
/mms
"vlc %s"
24 $GCONFTOOL $OPTS /desktop
/gnome
/url-handlers
/mmsh
"vlc %s"
25 $GCONFTOOL $OPTS /desktop
/gnome
/url-handlers
/rtsp
"vlc %s"
26 $GCONFTOOL $OPTS /desktop
/gnome
/url-handlers
/rtp
"vlc %s"