diff --git a/src/main/java/org/openaudible/desktop/swt/manager/views/AudibleBrowser.java b/src/main/java/org/openaudible/desktop/swt/manager/views/AudibleBrowser.java index cd569b5..6a7f3fa 100644 --- a/src/main/java/org/openaudible/desktop/swt/manager/views/AudibleBrowser.java +++ b/src/main/java/org/openaudible/desktop/swt/manager/views/AudibleBrowser.java @@ -47,7 +47,12 @@ public class AudibleBrowser { try { if (Platform.isWindows()) silenceWindowsExplorer(); - browser = new Browser(parent, SWT.BORDER); + int style = 0; + if (Platform.isLinux()) + style = SWT.WEBKIT; + else + style = SWT.MOZILLA; + browser = new Browser(parent, style); browser.addTitleListener(event -> getShell().setText(event.title)); Object t = browser.getWebBrowser(); @@ -56,6 +61,7 @@ public class AudibleBrowser { } catch (SWTError e) { + logger.error("error creating browser", e); error = e; /* Browser widget could not be instantiated */ parent.setLayout(new FillLayout()); diff --git a/src/main/java/org/openaudible/util/Platform.java b/src/main/java/org/openaudible/util/Platform.java index 41eeaa6..c73a26a 100644 --- a/src/main/java/org/openaudible/util/Platform.java +++ b/src/main/java/org/openaudible/util/Platform.java @@ -25,4 +25,7 @@ public enum Platform { return getPlatform().equals(win); } + public static boolean isLinux() { + return getPlatform().equals(linux); + } } diff --git a/swt/org.eclipse.swt.gtk.linux.x86_64-4.6.jar b/swt/org.eclipse.swt.gtk.linux.x86_64-4.6.jar index 8178f5f..cca16d5 100644 Binary files a/swt/org.eclipse.swt.gtk.linux.x86_64-4.6.jar and b/swt/org.eclipse.swt.gtk.linux.x86_64-4.6.jar differ