# 'nohup':  make the process immune to hangups.
# '&':      send it to the background.
# 'disown': detach it from the shell.
nohup "${OPENER:-${opener:-xdg-open}}" "$1" >/dev/null 2>&1 &
# disown

open()
{
  nohup "$@" > /dev/null 2>&1 &
  # nohup "$@" > /dev/null 2>&1 & disown
}

guiopen()
{
  nohup xdg-open "$@" >/dev/null 2>&1 &
  # nohup xdg-open "$@" >/dev/null 2>&1 & disown
}
