mutt-wizard/etc/htmlopen.sh

12 lines
200 B
Bash
Raw Normal View History

2018-10-07 21:43:44 +02:00
#!/bin/sh
# Helps open an HTML file from mutt in a GUI browser without weird side effects.
file=$(mktemp -u --suffix=.html)
2018-10-11 20:48:40 +02:00
rm -f "$file"
2018-10-07 21:43:44 +02:00
cp "$1" "$file"
2018-10-11 20:48:40 +02:00
setsid firefox "$file" >/dev/null 2>&1 &