summaryrefslogtreecommitdiff
path: root/etc/openfile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/openfile.sh')
-rwxr-xr-xetc/openfile.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/etc/openfile.sh b/etc/openfile.sh
deleted file mode 100755
index c866932..0000000
--- a/etc/openfile.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-# Helps open a file with xdg-open from mutt in a external program without weird side effects.
-
-base=$(basename "$1")
-ext="${base##*.}"
-
-file=$(mktemp -u --suffix=".$ext")
-
-rm -f "$file"
-
-cp "$1" "$file"
-
-setsid xdg-open "$file" >/dev/null 2>&1 &