Selaa lähdekoodia

Check for wayland first

bryan 2 vuotta sitten
vanhempi
commit
4dee7b8119
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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