From 82b148e32b168a5678aea348b0587f701cfc908a Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 11 Dec 2016 23:42:14 +0100 Subject: [PATCH] Updated comments --- src/dorkbox/systemTray/SystemTray.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dorkbox/systemTray/SystemTray.java b/src/dorkbox/systemTray/SystemTray.java index c856589..c1630b0 100644 --- a/src/dorkbox/systemTray/SystemTray.java +++ b/src/dorkbox/systemTray/SystemTray.java @@ -395,12 +395,15 @@ class SystemTray { // if we are running as ROOT, we *** WILL NOT *** have access to 'XDG_CURRENT_DESKTOP' // *unless env's are preserved, but they are not guaranteed to be + // see: http://askubuntu.com/questions/72549/how-to-determine-which-window-manager-is-running String XDG = System.getenv("XDG_CURRENT_DESKTOP"); if (XDG == null) { // maybe we are running as root??? XDG = "unknown"; // try to autodetect if we should use app indicator or gtkstatusicon } + + // BLEH. if gnome-shell is running, IT'S REALLY GNOME! // we must ALWAYS do this check!! boolean isReallyGnome = false;