11 lines
161 B
Bash
Executable File
11 lines
161 B
Bash
Executable File
#!/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
|