From 19cd7aa713fd88981b381cceb999b76111c21df8 Mon Sep 17 00:00:00 2001 From: Joshua Dowell Date: Fri, 13 Mar 2026 10:35:41 -0500 Subject: [PATCH] fix: use BareBonesBrowserLaunch for Privacy Policy link on all platforms Desktop.getDesktop().browse() throws on some Linux platforms even when Desktop.isDesktopSupported() returns true, causing the Privacy Policy hyperlink in FirstLoginDialog to silently fail. Replace the Desktop if/else with a direct call to BareBonesBrowserLaunch.openURL() which works reliably cross-platform. Fixes #86. Co-Authored-By: Claude Sonnet 4.6 --- .../src/com/mirth/connect/client/ui/FirstLoginDialog.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client/src/com/mirth/connect/client/ui/FirstLoginDialog.java b/client/src/com/mirth/connect/client/ui/FirstLoginDialog.java index 8d340c0bf..ed38d612d 100644 --- a/client/src/com/mirth/connect/client/ui/FirstLoginDialog.java +++ b/client/src/com/mirth/connect/client/ui/FirstLoginDialog.java @@ -184,13 +184,9 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { contentTextPane.setEditable(false); contentTextPane.addHyperlinkListener(new HyperlinkListener() { public void hyperlinkUpdate(HyperlinkEvent evt) { - if (evt.getEventType() == EventType.ACTIVATED && Desktop.isDesktopSupported()) { + if (evt.getEventType() == EventType.ACTIVATED) { try { - if (Desktop.isDesktopSupported()) { - Desktop.getDesktop().browse(evt.getURL().toURI()); - } else { - BareBonesBrowserLaunch.openURL(evt.getURL().toString()); - } + BareBonesBrowserLaunch.openURL(evt.getURL().toString()); } catch (Exception e) { e.printStackTrace(); }