From 649ebaef22018db46638de027069ecffc0a11038 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 20 Dec 2022 12:43:38 +0800 Subject: Update mime config --- scripts/init-mime.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/init-mime.sh b/scripts/init-mime.sh index b5617b5..d39cb89 100755 --- a/scripts/init-mime.sh +++ b/scripts/init-mime.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash set_xdg_mime () { - application=$1 - mimetype=$2 + local application=$1 + local mimetype=$2 if [ -f /usr/share/applications/$application -o -f $HOME/.local/share/applications/$application ] then @@ -22,4 +22,5 @@ set_xdg_mime sxiv.desktop image/jpeg set_xdg_mime mpv.desktop video/x-flv set_xdg_mime mpv.desktop video/x-ms-asf +set_xdg_mime mpv.desktop video/mp4 set_xdg_mime mpv.desktop audio/mpeg -- cgit v1.2.3