blob: d39cb891f70c6c182e6b263cc965b8fa5f064f65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/usr/bin/env bash
set_xdg_mime () {
local application=$1
local mimetype=$2
if [ -f /usr/share/applications/$application -o -f $HOME/.local/share/applications/$application ]
then
xdg-mime default $application $mimetype
fi
}
set_xdg_mime thunar.desktop inode/directory
set_xdg_mime org.pwmt.zathura.desktop application/pdf
set_xdg_mime firefox.desktop x-scheme-handler/http
set_xdg_mime firefox.desktop x-scheme-handler/https
set_xdg_mime sxiv.desktop image/png
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
|