diff options
author | Guangxiong Lin <[email protected]> | 2022-12-20 12:43:38 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-12-20 12:43:38 +0800 |
commit | 649ebaef22018db46638de027069ecffc0a11038 (patch) | |
tree | 5e2d5e2ee5f138381387191df9a5c0792e02d7ee | |
parent | d059b79f5020573f2d7fd3f2e0a78dca2311f48b (diff) | |
download | dotfiles-649ebaef22018db46638de027069ecffc0a11038.tar.gz dotfiles-649ebaef22018db46638de027069ecffc0a11038.tar.bz2 dotfiles-649ebaef22018db46638de027069ecffc0a11038.zip |
Update mime config
-rwxr-xr-x | scripts/init-mime.sh | 5 |
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 |