summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-11-06 15:04:20 +0100
committerBastien Nocera <hadess@hadess.net>2020-11-06 15:26:17 +0100
commit124d288049deecc042f6c11e81beeff8f48818f6 (patch)
tree2eb9358aac2aea5b85d8c6a1c598a992fd50d8c6
parentdbabce5e774104fc92ed1ee4d050e50f9699be7e (diff)
downloadtotem-wip/hadess/no-application-ogg.tar.gz
data: Remove application/ogg from the supported mime-typeswip/hadess/no-application-ogg
Both the audio/ogg and video/ogg mime-types are subclasses of application/ogg. Seeing as we only support the video subclass (see e4a1aaf7d9d3b2c50e2540d5d7f0059ffa30c26b), remove application/ogg from the supported mime-types. This will also stop the “Default Applications” panel in GNOME's Settings from listing Videos as a potential audio player.
-rw-r--r--data/mime-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/mime-functions.sh b/data/mime-functions.sh
index 5c3b37493..b271b2a61 100644
--- a/data/mime-functions.sh
+++ b/data/mime-functions.sh
@@ -8,7 +8,7 @@ get_audio_mimetypes ()
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 -E 'application/[a-z-]*ogg'`
MIMETYPES="$MIMETYPES audio/x-pn-realaudio"
}