Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
1e89271e
Commit
1e89271e
authored
Dec 27, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make gnome-vlc-default.sh script work on FC4/5/6 too.
parent
1bc5e07b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
6 deletions
+23
-6
share/applications/gnome-vlc-default.sh
share/applications/gnome-vlc-default.sh
+23
-6
No files found.
share/applications/gnome-vlc-default.sh
View file @
1e89271e
#!/bin/sh
# share/applications/gnome-vlc-default.sh
# $Id:$
#
# Copyright (C) 2006, VideoLAN team
# Authors: Torsten Spindler
# Jean-Paul Saman
#
# 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"
#
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment