#!/bin/sh set -eu if [ ! -e "${1}" ]; then printf 'File %s not found' "${1}" >&2 exit 1 fi setsid --fork xdg-open "${1}" < /dev/null > /dev/null 2>&1