Skip to content

Commit

Permalink
Viewer: Don't init GUI if turbovnc.sshkeytest set
Browse files Browse the repository at this point in the history
  • Loading branch information
dcommander committed Feb 3, 2025
1 parent f24eaec commit 8276416
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions java/com/turbovnc/vncviewer/VncViewer.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 2011-2018, 2020-2024 D. R. Commander. All Rights Reserved.
/* Copyright (C) 2011-2018, 2020-2025 D. R. Commander. All Rights Reserved.
* Copyright (C) 2011-2013, 2016 Brian P. Hinz
* Copyright 2011 Pierre Ossman <[email protected]> for Cendio AB
* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
Expand Down Expand Up @@ -177,7 +177,8 @@ static void enableFileHandler() throws Exception {
}

static void setLookAndFeel() {
if (Utils.getBooleanProperty("turbovnc.autotest", false))
if (Utils.getBooleanProperty("turbovnc.autotest", false) ||
Utils.getBooleanProperty("turbovnc.sshkeytest", false))
return;

try {
Expand Down Expand Up @@ -254,7 +255,8 @@ public void run() {
}

static void setGlobalInsets() {
if (Utils.getBooleanProperty("turbovnc.autotest", false))
if (Utils.getBooleanProperty("turbovnc.autotest", false) ||
Utils.getBooleanProperty("turbovnc.sshkeytest", false))
return;

try {
Expand Down Expand Up @@ -304,7 +306,8 @@ public void componentResized(ComponentEvent e) {
}

public static void setBlitterDefaults() {
if (Utils.getBooleanProperty("turbovnc.autotest", false))
if (Utils.getBooleanProperty("turbovnc.autotest", false) ||
Utils.getBooleanProperty("turbovnc.sshkeytest", false))
return;

// Java 1.7 and later do not include hardware-accelerated 2D blitting
Expand Down

0 comments on commit 8276416

Please sign in to comment.