Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
totem
totem-URI-scheme-handler-support.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File totem-URI-scheme-handler-support.patch of Package totem
From 74833ef98e515104a5ef10b0e59af0b5a0244ed7 Mon Sep 17 00:00:00 2001 From: Bastien Nocera <hadess@hadess.net> Date: Tue, 05 Oct 2010 10:06:41 +0000 Subject: Add support for URI scheme handlers --- diff --git a/data/desktop.sh b/data/desktop.sh index 4c47664..2bb4693 100755 --- a/data/desktop.sh +++ b/data/desktop.sh @@ -10,4 +10,11 @@ for i in $MIMETYPES ; do echo_mime; done +# URI scheme handlers +SCHEMES="pnm mms net rtp rtsp mmsh uvox icy icyx" + +for i in $SCHEMES ; do + printf "x-scheme-handler/$i"; +done + echo "" diff --git a/data/mime-functions.sh b/data/mime-functions.sh index 0ea9c40..370f35b 100644 --- a/data/mime-functions.sh +++ b/data/mime-functions.sh @@ -2,13 +2,13 @@ get_audio_mimetypes () { - MIMETYPES=`grep -v '^#' $1 | grep "\/" | grep audio | grep -v "audio/x-pn-realaudio" | grep -v "audio/x-scpls" | grep -v "audio/mpegurl" | grep -v "audio/x-mpegurl"` + MIMETYPES=`grep -v '^#' $1 | grep "\/" | grep audio | grep -v "audio/x-pn-realaudio" | grep -v "audio/x-scpls" | grep -v "audio/mpegurl" | grep -v "audio/x-mpegurl" | grep -v x-scheme-handler/` MIMETYPES="$MIMETYPES application/x-flac" } get_video_mimetypes () { - MIMETYPES=`grep -v '^#' $1 | grep -v x-content/ | grep -v audio | grep -v "application/x-flac" | grep -v "text/google-video-pointer" | grep -v "application/x-quicktime-media-link" | grep -v "application/smil" | grep -v "application/smil+xml" | grep -v "application/x-smil" | grep -v "application/xspf+xml"` + MIMETYPES=`grep -v '^#' $1 | grep -v x-content/ | grep -v audio | grep -v "application/x-flac" | grep -v "text/google-video-pointer" | grep -v "application/x-quicktime-media-link" | grep -v "application/smil" | grep -v "application/smil+xml" | grep -v "application/x-smil" | grep -v "application/xspf+xml" | grep -v x-scheme-handler/` MIMETYPES="$MIMETYPES audio/x-pn-realaudio" } diff --git a/data/mime-type-include.sh b/data/mime-type-include.sh index 9c269b1..3560839 100755 --- a/data/mime-type-include.sh +++ b/data/mime-type-include.sh @@ -22,7 +22,7 @@ if [ x"$1" = "x--nautilus" ] ; then exit 0 fi -MIMETYPES=`grep -v '^#' $1 | grep -v x-content/` +MIMETYPES=`grep -v '^#' $1 | grep -v x-content/ | grep -v x-scheme-handler/` echo "/* generated with mime-types-include.sh, don't edit */" echo "const char *mime_types[] = {" -- cgit v0.8.3.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor