From f428aa1dfedd101a03571ac569736f7bc0fd1d86 Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 24 Mar 2023 20:38:27 -0400 Subject: [PATCH] Switch back to user service --- installJRMC | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/installJRMC b/installJRMC index 693aae9..a834711 100755 --- a/installJRMC +++ b/installJRMC @@ -1386,11 +1386,12 @@ service_jriver-x11vnc() { setVNCPass x11vnc # If .Xauthority file is missing, generate a dummy for x11vnc -auth guess - debug "Generating $HOME/.Xauthority" if [[ ! -f "$HOME/.Xauthority" ]]; then + debug "Generating $HOME/.Xauthority" [[ $XDG_SESSION_TYPE == "wayland" ]] && askOk "Unsupported Wayland session detected for x11vnc, continue?" || return 1 - touch "$HOME/.Xauthority" + execute touch "$HOME/.Xauthority" + execute chmod 644 "$HOME/.Xauthority" xauth generate "$DISPLAY" . trusted xauth add "$HOST$DISPLAY" . "$(xxd -l 16 -p /dev/urandom)" fi