Explorar el Código

Check for wayland first

bryan hace 2 años
padre
commit
4dee7b8119
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      installJRMC

+ 1 - 1
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