From 9a3c742129fc221bb278d803476ee9342c3895d8 Mon Sep 17 00:00:00 2001 From: Colin P. McCabe <cmccabe@apache.org> Date: Sun, 29 Dec 2024 15:14:09 -0800 Subject: [PATCH] open: put new process in the background --- open | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/open b/open index a965886..f2b8f05 100755 --- a/open +++ b/open @@ -11,11 +11,11 @@ openwith() { application="${2}" if [[ -n "${application}" ]]; then if which "${application}" > /dev/null ; then - setsid nohup ${application} "${f}" > /dev/null 2> /dev/null + setsid nohup ${application} "${f}" > /dev/null 2> /dev/null & return fi fi - setsid nohup xdg-open "${f}" > /dev/null 2> /dev/null + setsid nohup xdg-open "${f}" > /dev/null 2> /dev/null & } # Determine what command to run based on file extension. -- 1.6.6.rc1.39.g9a42