vlc/share/utils/gnome-vlc-default.sh

29 lines
873 B
Bash
Raw Normal View History

#!/bin/sh
# share/applications/gnome-vlc-default.sh
2006-12-27 18:27:09 +08:00
# $Id$
#
# Copyright (C) 2006, VideoLAN team
# Authors: Torsten Spindler
2006-12-27 18:23:05 +08:00
# Jean-Paul Saman <jpsaman _at_ videolan dot org>
#
# Set vlc as default player on the gnome desktop
# Tested on Ubuntu 6.10 Edgy
#
2006-12-27 18:27:09 +08:00
GCONFTOOL=gconftool
if test -x /usr/bin/gconftool; then
GCONFTOOL=/usr/bin/gconftool
OPTS="-t string -s"
fi
if test -x /usr/bin/gconftool-2; then
GCONFTOOL=/usr/bin/gconftool-2
OPTS="--type string --set"
fi
$GCONFTOOL $OPTS /desktop/gnome/volume_manager/autoplay_vcd_command "vlc %m"
$GCONFTOOL $OPTS /desktop/gnome/volume_manager/autoplay_dvd_command "vlc %m"
$GCONFTOOL $OPTS /desktop/gnome/url-handlers/mms "vlc %s"
$GCONFTOOL $OPTS /desktop/gnome/url-handlers/mmsh "vlc %s"
$GCONFTOOL $OPTS /desktop/gnome/url-handlers/rtsp "vlc %s"
$GCONFTOOL $OPTS /desktop/gnome/url-handlers/rtp "vlc %s"
exit 0