Run programs with "setsid"

This commit is contained in:
Konstantin Nazarov 2024-11-03 01:52:52 +00:00
parent e1b69b417b
commit 34d17d1e99
Signed by: knazarov
GPG key ID: 4CFE0A42FA409C22

3
q-run
View file

@ -22,6 +22,5 @@ elif [[ "$1" == "--preview" ]]; then
echo "Will run $1"
elif [[ "$1" == "--run" ]]; then
shift
(nohup "$1" 2>/dev/null &)
sleep 0.01
setsid "$1"
fi