Call "setsid" with always-fork
This commit is contained in:
parent
2b9b47ab46
commit
18c518af03
5 changed files with 5 additions and 5 deletions
2
q-browse
2
q-browse
|
@ -17,5 +17,5 @@ elif [[ "$1" == "--preview" ]]; then
|
||||||
elif [[ "$1" == "--run" ]]; then
|
elif [[ "$1" == "--run" ]]; then
|
||||||
shift
|
shift
|
||||||
URL="$(echo "$@" | $ENV_cut -d ' ' -f3-)"
|
URL="$(echo "$@" | $ENV_cut -d ' ' -f3-)"
|
||||||
setsid $ENV_xdg_open "$URL"
|
setsid -f $ENV_xdg_open "$URL"
|
||||||
fi
|
fi
|
||||||
|
|
2
q-calc
2
q-calc
|
@ -28,7 +28,7 @@ elif [[ "$1" == "--preview" ]]; then
|
||||||
elif [[ "$1" == "--run" ]]; then
|
elif [[ "$1" == "--run" ]]; then
|
||||||
shift
|
shift
|
||||||
echo "$1"
|
echo "$1"
|
||||||
echo "$1" | (setsid $ENV_wl_copy)
|
echo "$1" | (setsid -f $ENV_wl_copy)
|
||||||
elif [[ "$1" == "--cli" ]]; then
|
elif [[ "$1" == "--cli" ]]; then
|
||||||
shift
|
shift
|
||||||
calc "$(echo "$@" | $ENV_cut -d ' ' -f2-)"
|
calc "$(echo "$@" | $ENV_cut -d ' ' -f2-)"
|
||||||
|
|
|
@ -24,7 +24,7 @@ elif [[ "$1" == "--run" ]]; then
|
||||||
shift
|
shift
|
||||||
TEXT="$(echo "$1" | $ENV_base64 -d)"
|
TEXT="$(echo "$1" | $ENV_base64 -d)"
|
||||||
echo "$TEXT"
|
echo "$TEXT"
|
||||||
echo -n "$TEXT" | (setsid $ENV_wl_copy)
|
echo -n "$TEXT" | (setsid -f $ENV_wl_copy)
|
||||||
else
|
else
|
||||||
echo "Unexpected arguments: $@"
|
echo "Unexpected arguments: $@"
|
||||||
fi
|
fi
|
||||||
|
|
2
q-pass
2
q-pass
|
@ -31,5 +31,5 @@ elif [[ "$1" == "--run" ]]; then
|
||||||
# one of the options. We now decrypt the password
|
# one of the options. We now decrypt the password
|
||||||
# and place it to the clipboard.
|
# and place it to the clipboard.
|
||||||
NAME="$1"
|
NAME="$1"
|
||||||
$ENV_pass "$NAME" | (setsid $ENV_wl_copy)
|
$ENV_pass "$NAME" | (setsid -f $ENV_wl_copy)
|
||||||
fi
|
fi
|
||||||
|
|
2
q-run
2
q-run
|
@ -22,5 +22,5 @@ elif [[ "$1" == "--preview" ]]; then
|
||||||
echo "Will run $1"
|
echo "Will run $1"
|
||||||
elif [[ "$1" == "--run" ]]; then
|
elif [[ "$1" == "--run" ]]; then
|
||||||
shift
|
shift
|
||||||
setsid "$1"
|
setsid -f "$1"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue