summaryrefslogtreecommitdiff
path: root/etc/htmlopen.sh
blob: f6676e7526b982f4d89e38d8b47d9cbe7063259b (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# Helps open an HTML file from mutt in a GUI browser without weird side effects.

file=$(mktemp -u --suffix=.html)

rm -f "$file"

cp "$1" "$file"

setsid firefox "$file" >/dev/null 2>&1 &