Check for wayland first
This commit is contained in:
@@ -1387,9 +1387,9 @@ service_jriver-x11vnc() {
|
|||||||
|
|
||||||
# If .Xauthority file is missing, generate a dummy for x11vnc -auth guess
|
# If .Xauthority file is missing, generate a dummy for x11vnc -auth guess
|
||||||
if [[ ! -f "$HOME/.Xauthority" ]]; then
|
if [[ ! -f "$HOME/.Xauthority" ]]; then
|
||||||
debug "Generating $HOME/.Xauthority"
|
|
||||||
[[ $XDG_SESSION_TYPE == "wayland" ]] &&
|
[[ $XDG_SESSION_TYPE == "wayland" ]] &&
|
||||||
askOk "Unsupported Wayland session detected for x11vnc, continue?" || return 1
|
askOk "Unsupported Wayland session detected for x11vnc, continue?" || return 1
|
||||||
|
debug "Generating $HOME/.Xauthority"
|
||||||
execute touch "$HOME/.Xauthority"
|
execute touch "$HOME/.Xauthority"
|
||||||
execute chmod 644 "$HOME/.Xauthority"
|
execute chmod 644 "$HOME/.Xauthority"
|
||||||
xauth generate "$DISPLAY" . trusted
|
xauth generate "$DISPLAY" . trusted
|
||||||
|
|||||||
Reference in New Issue
Block a user