You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 6 година
1234567891011121314
  1. #!/bin/sh
  2. # Helps open a file with xdg-open from mutt in a external program without weird side effects.
  3. base=$(basename "$1")
  4. ext="${base##*.}"
  5. file=$(mktemp -u --suffix=".$ext")
  6. rm -f "$file"
  7. cp "$1" "$file"
  8. setsid xdg-open "$file" >/dev/null 2>&1 &