From 4dee7b81192ab9a916c0cf2565178fbcf8ce2735 Mon Sep 17 00:00:00 2001 From: bryan Date: Sat, 25 Mar 2023 14:28:09 -0400 Subject: [PATCH] Check for wayland first --- installJRMC | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installJRMC b/installJRMC index a834711..b9dda8f 100755 --- a/installJRMC +++ b/installJRMC @@ -1387,9 +1387,9 @@ service_jriver-x11vnc() { # If .Xauthority file is missing, generate a dummy for x11vnc -auth guess if [[ ! -f "$HOME/.Xauthority" ]]; then - debug "Generating $HOME/.Xauthority" [[ $XDG_SESSION_TYPE == "wayland" ]] && askOk "Unsupported Wayland session detected for x11vnc, continue?" || return 1 + debug "Generating $HOME/.Xauthority" execute touch "$HOME/.Xauthority" execute chmod 644 "$HOME/.Xauthority" xauth generate "$DISPLAY" . trusted