access: live555: only use valid pcr from tracks
[vlc.git] / share / utils / gnome-vlc-default.sh
blob03ec5c54370f9ae650dfee0db3cfad2f46751e80
1 #!/bin/sh
2 # share/applications/gnome-vlc-default.sh
3 # $Id$
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
12 GCONFTOOL=gconftool
13 if test -x /usr/bin/gconftool; then
14 GCONFTOOL=/usr/bin/gconftool
15 OPTS="-t string -s"
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"
28 exit 0