Merge remote-tracking branch 'origin/pr/3332'
This commit is contained in:
commit
e7c4df7a9c
@ -3,16 +3,13 @@
|
||||
# author: Thore Bödecker (foxxx0)
|
||||
|
||||
_url="$1"
|
||||
_qb_version='0.10.1'
|
||||
_qb_version='1.0.3'
|
||||
_proto_version=1
|
||||
_ipc_socket="${XDG_RUNTIME_DIR}/qutebrowser/ipc-$(echo -n "$USER" | md5sum | cut -d' ' -f1)"
|
||||
_qute_bin="/usr/bin/qutebrowser"
|
||||
|
||||
if [[ -e "${_ipc_socket}" ]]; then
|
||||
exec printf '{"args": ["%s"], "target_arg": null, "version": "%s", "protocol_version": %d, "cwd": "%s"}\n' \
|
||||
"${_url}" \
|
||||
"${_qb_version}" \
|
||||
"${_proto_version}" \
|
||||
"${PWD}" | socat - UNIX-CONNECT:"${_ipc_socket}"
|
||||
else
|
||||
exec /usr/bin/qutebrowser --backend webengine "$@"
|
||||
fi
|
||||
printf '{"args": ["%s"], "target_arg": null, "version": "%s", "protocol_version": %d, "cwd": "%s"}\n' \
|
||||
"${_url}" \
|
||||
"${_qb_version}" \
|
||||
"${_proto_version}" \
|
||||
"${PWD}" | socat - UNIX-CONNECT:"${_ipc_socket}" 2>/dev/null || "$_qute_bin" "$@" &
|
||||
|
Loading…
Reference in New Issue
Block a user