aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-12-20 12:43:38 +0800
committerGuangxiong Lin <[email protected]>2022-12-20 12:43:38 +0800
commit649ebaef22018db46638de027069ecffc0a11038 (patch)
tree5e2d5e2ee5f138381387191df9a5c0792e02d7ee /scripts
parentd059b79f5020573f2d7fd3f2e0a78dca2311f48b (diff)
downloaddotfiles-649ebaef22018db46638de027069ecffc0a11038.tar.gz
dotfiles-649ebaef22018db46638de027069ecffc0a11038.tar.bz2
dotfiles-649ebaef22018db46638de027069ecffc0a11038.zip
Update mime config
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/init-mime.sh5
1 files 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