[totem/wip/hadess/remove-audio-mimes: 4/4] data: Remove association with audio files




commit e4a1aaf7d9d3b2c50e2540d5d7f0059ffa30c26b
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Aug 20 11:36:56 2020 +0200

    data: Remove association with audio files
    
    We really don't want audio files to be played back in the movie player,
    as we've been steadily removing audio playback features.
    
    See also:
    help: Remove audio and music references; Totem is a video player

 data/desktop.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/data/desktop.sh b/data/desktop.sh
index dfc1f495c..122d5fedf 100755
--- a/data/desktop.sh
+++ b/data/desktop.sh
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+. `dirname $0`/mime-functions.sh
+
 echo_mime () {
        printf "$i;";
 }
@@ -8,7 +10,12 @@ echo_handler () {
        printf "x-scheme-handler/$i;";
 }
 
-MIMETYPES=`grep -v ^# $1`
+get_video_mimetypes $1;
+for i in $MIMETYPES ; do
+       echo_mime;
+done
+
+get_playlist_media_mimetypes $1;
 for i in $MIMETYPES ; do
        echo_mime;
 done


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]