Updated SystemTray and Extension for Debian 8.5/8.6 + Gnome3. It does

not work (on a default install)
This commit is contained in:
nathan 2016-12-30 00:04:16 +01:00
parent b9ab6a79c2
commit e61723dd5b
2 changed files with 13 additions and 1 deletions

View File

@ -548,6 +548,16 @@ class SystemTray {
else if ("cinnamon".equalsIgnoreCase(GDM)) {
trayType = selectTypeQuietly(useNativeMenus, TrayType.GtkStatusIcon);
}
else if ("default".equalsIgnoreCase(GDM)) {
// this can be gnome3 on debian
if (OSUtil.Linux.isDebian()) {
// note: Debian Gnome3 does NOT work! (tested on Debian 8.5 and 8.6 default installs)
logger.warn("Debian with Gnome detected. SystemTray support is not known to work.");
}
trayType = selectTypeQuietly(useNativeMenus, TrayType.GtkStatusIcon);
}
else if ("gnome-classic".equalsIgnoreCase(GDM)) {
trayType = selectTypeQuietly(useNativeMenus, TrayType.GtkStatusIcon);
}

View File

@ -214,7 +214,9 @@ class Extension {
*/
public static
void install() {
if (!ENABLE_EXTENSION_INSTALL || !OSUtil.DesktopEnv.isGnome()) {
boolean isGnome = OSUtil.DesktopEnv.isGnome();
if (!ENABLE_EXTENSION_INSTALL || !isGnome || (isGnome && OSUtil.Linux.isDebian())) {
// note: Debian Gnome3 does NOT work! (tested on Debian 8.5 and 8.6 default installs)
return;
}