mimix/mimeopen

22 lines
369 B
Bash
Executable File

#!/bin/sh
set -euf
# wrapper to use mimix instead of the perl mimeopen thing
# was made for wyeb but I then realized you can change it
# so... don't think this is all that useful anymore
# strip args
for w; do
case $w in
(--) shift; break ;;
(-*) shift ;;
(*) break ;;
esac
done
if [ -n "${1:-}" ]; then
xdg-open "$1"
else
echo "no argument provided!" >&2
fi