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

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

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

echo $file
cp "$1" "$file"

setsid firefox "$file" &