From 4de8ddca3a9533e36dfdf147a4152180e88dd3ee Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 2 Dec 2017 15:08:43 +0100 Subject: [PATCH] Added info about Ubuntu 17.10 (it's not yet supported) --- src/dorkbox/systemTray/SystemTray.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dorkbox/systemTray/SystemTray.java b/src/dorkbox/systemTray/SystemTray.java index 5139d8f..19765cc 100644 --- a/src/dorkbox/systemTray/SystemTray.java +++ b/src/dorkbox/systemTray/SystemTray.java @@ -294,6 +294,13 @@ class SystemTray { return selectTypeQuietly(TrayType.GtkStatusIcon); } else if ("ubuntu".equalsIgnoreCase(GDM)) { + // ubuntu 17.10 uses the NEW gnome DE, which screws up previous Ubuntu workarounds, since it's now proper Gnome + int[] version = OSUtil.Linux.getUbuntuVersion(); + if (version[0] > 17 || (version[0] == 17 && version[1] == 10)) { + // this is gnome 3.26.1 + logger.debug("This Ubuntu 17.10 is not yet supported!"); + } + return selectTypeQuietly(TrayType.AppIndicator); } break;