defaut-open with better mime types
This commit is contained in:
parent
34a24f6c07
commit
6b65b871bf
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
mimetype=$1
|
mimetype=$1
|
||||||
original=$2
|
original=$2
|
||||||
ext=$(grep "$mimetype" /etc/mime.types | awk '{print $2}')
|
ext=$(grep "$mimetype" /etc/mime.types | head -n 1 | awk '{print $2}')
|
||||||
|
|
||||||
destination=$(mktemp --suffix=".$ext")
|
destination=$(mktemp --suffix=".$ext")
|
||||||
cp $original $destination
|
cp $original $destination
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue