diff options
Diffstat (limited to 'java/com/tigervnc/vncviewer/VncViewer.java')
-rw-r--r-- | java/com/tigervnc/vncviewer/VncViewer.java | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/java/com/tigervnc/vncviewer/VncViewer.java b/java/com/tigervnc/vncviewer/VncViewer.java index 4e4364cb..2a372b98 100644 --- a/java/com/tigervnc/vncviewer/VncViewer.java +++ b/java/com/tigervnc/vncviewer/VncViewer.java @@ -63,7 +63,7 @@ public class VncViewer implements Runnable { public static final String aboutText = new String("TigerVNC Java viewer v%s (%s)%n"+ "Built on %s at %s%n"+ - "Copyright (C) 1999-2024 TigerVNC Team and many others (see README.rst)%n"+ + "Copyright (C) 1999-2025 TigerVNC team and many others (see README.rst)%n"+ "See https://www.tigervnc.org for information on TigerVNC."); public static String version = null; @@ -212,6 +212,8 @@ public class VncViewer implements Runnable { // Check if the server name in reality is a configuration file potentiallyLoadConfigurationFile(vncServerName); + + migrateDeprecatedOptions(); } public static void usage() { @@ -359,7 +361,7 @@ public class VncViewer implements Runnable { JOptionPane op = new JOptionPane(msg, JOptionPane.INFORMATION_MESSAGE, JOptionPane.DEFAULT_OPTION, VncViewer.logoIcon, options); - JDialog dlg = op.createDialog(parent, "About TigerVNC viewer for Java"); + JDialog dlg = op.createDialog(parent, "About TigerVNC"); dlg.setIconImage(VncViewer.frameIcon); dlg.setAlwaysOnTop(true); dlg.setVisible(true); @@ -378,7 +380,7 @@ public class VncViewer implements Runnable { void reportException(java.lang.Exception e) { String title, msg = e.getMessage(); int msgType = JOptionPane.ERROR_MESSAGE; - title = "TigerVNC viewer : Error"; + title = "TigerVNC : Error"; e.printStackTrace(); JOptionPane.showMessageDialog(null, msg, title, msgType); } @@ -449,6 +451,15 @@ public class VncViewer implements Runnable { } } + static void migrateDeprecatedOptions() { + if (dotWhenNoCursor.getValue()) { + vlog.info("DotWhenNoCursor is deprecated, set AlwaysCursor to 1 and CursorType to 'Dot' instead"); + + alwaysCursor.setParam(true); + cursorType.setParam("Dot"); + } + } + public static CConn cc; public static StringParameter config = new StringParameter("Config", |