Code polish for extension

This commit is contained in:
nathan 2017-01-30 00:13:02 +01:00
parent 9abc2bdc5f
commit 9e3af1a299

View File

@ -43,6 +43,7 @@ import dorkbox.util.process.ShellProcessBuilder;
public public
class Extension { class Extension {
private static final String UID = "SystemTray@Dorkbox"; private static final String UID = "SystemTray@Dorkbox";
public static final String DEFAULT_NAME = "SystemTray";
@Property @Property
/** Permit the StatusTray icon to be displayed next to the clock by installing an extension. By default, gnome places the icon in the /** Permit the StatusTray icon to be displayed next to the clock by installing an extension. By default, gnome places the icon in the
@ -215,7 +216,7 @@ class Extension {
public static public static
void install() { void install() {
boolean isGnome = OSUtil.DesktopEnv.isGnome(); boolean isGnome = OSUtil.DesktopEnv.isGnome();
if (!ENABLE_EXTENSION_INSTALL || !isGnome || (isGnome && OSUtil.Linux.isDebian())) { if (!ENABLE_EXTENSION_INSTALL || !isGnome || (OSUtil.Linux.isDebian())) {
// note: Debian Gnome3 does NOT work! (tested on Debian 8.5 and 8.6 default installs) // note: Debian Gnome3 does NOT work! (tested on Debian 8.5 and 8.6 default installs)
return; return;
} }
@ -238,9 +239,6 @@ class Extension {
return; return;
} }
// set a property so that GTK (if necessary) can set the name
System.setProperty("SystemTray_SET_NAME", "true");
// have to copy the extension over and enable it. // have to copy the extension over and enable it.
String userHome = System.getProperty("user.home"); String userHome = System.getProperty("user.home");