Script to set vlc as default player on GNOME desktops. Patch by Torsten Spindler <spindler _at_ tspindler _dot_ de>

This commit is contained in:
Jean-Paul Saman 2006-12-27 10:06:08 +00:00
parent 43bff21b9c
commit 0eecb210eb
2 changed files with 11 additions and 0 deletions

View File

@ -254,6 +254,7 @@ DIST_osdmenu_dvd = \
DIST_applications = \
applications/vlc.desktop \
applications/gnome-vlc-default.sh \
$(NULL)
skins2/default.vlt:

View File

@ -0,0 +1,10 @@
#!/bin/sh
# Set vlc as default player on the gnome desktop
# Tested on Ubuntu 6.10 Edgy
gconftool -t string -s /desktop/gnome/volume_manager/autoplay_vcd_command "vlc %m"
gconftool -t string -s /desktop/gnome/volume_manager/autoplay_dvd_command "vlc %m"
gconftool -t string -s /desktop/gnome/url-handlers/mms "vlc %s"
gconftool -t string -s /desktop/gnome/url-handlers/mmsh "vlc %s"
gconftool -t string -s /desktop/gnome/url-handlers/rtsp "vlc %s"
gconftool -t string -s /desktop/gnome/url-handlers/rtp "vlc %s"