aboutsummaryrefslogtreecommitdiff
path: root/bash/xdg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bash/xdg.sh')
-rw-r--r--bash/xdg.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/bash/xdg.sh b/bash/xdg.sh
new file mode 100644
index 0000000..ca8ee57
--- /dev/null
+++ b/bash/xdg.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+mkdir -p ~/.local/share/applications/
+
+cat << EOF > ~/.local/share/applications/evince-andreh.desktop
+[Desktop Entry]
+Type=Application
+Name=evince
+Comment=Evince PDF viewer
+Terminal=false
+Exec=evince
+Categories=Network;WebBrowserEOF
+EOF
+
+xdg-mime default evince-andreh.desktop application/pdf