Skip to content

Commit 19cd7aa

Browse files
Joshua Dowellclaude
andcommitted
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 <noreply@anthropic.com>
1 parent 7723b34 commit 19cd7aa

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

client/src/com/mirth/connect/client/ui/FirstLoginDialog.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,9 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
184184
contentTextPane.setEditable(false);
185185
contentTextPane.addHyperlinkListener(new HyperlinkListener() {
186186
public void hyperlinkUpdate(HyperlinkEvent evt) {
187-
if (evt.getEventType() == EventType.ACTIVATED && Desktop.isDesktopSupported()) {
187+
if (evt.getEventType() == EventType.ACTIVATED) {
188188
try {
189-
if (Desktop.isDesktopSupported()) {
190-
Desktop.getDesktop().browse(evt.getURL().toURI());
191-
} else {
192-
BareBonesBrowserLaunch.openURL(evt.getURL().toString());
193-
}
189+
BareBonesBrowserLaunch.openURL(evt.getURL().toString());
194190
} catch (Exception e) {
195191
e.printStackTrace();
196192
}

0 commit comments

Comments
 (0)