Fixed system tray UID to match GNOME extension

This commit is contained in:
nathan 2016-04-24 17:05:04 +02:00
parent f7e9660233
commit d00c99fb4f

View File

@ -23,7 +23,7 @@ import java.io.*;
public
class GnomeShellExtension {
private static final String UID = "SystemTray@dorkbox";
static final String UID = "SystemTray@Dorkbox";
@Property
/** Permit the gnome-shell to be restarted when the extension is installed. */
@ -125,6 +125,15 @@ class GnomeShellExtension {
}
}
// need to make the extension location
if (!file.isDirectory()) {
final boolean mkdirs = file.mkdirs();
if (!mkdirs) {
final String msg = "Unable to create extension location: " + file;
logger.error(msg);
throw new RuntimeException(msg);
}
}
BufferedWriter outputWriter = null;
try {
@ -142,15 +151,6 @@ class GnomeShellExtension {
}
}
if (!file.isDirectory()) {
final boolean mkdirs = file.mkdirs();
if (!mkdirs) {
final String msg = "Unable to create extension location: " + file;
logger.error(msg);
throw new RuntimeException(msg);
}
}
// copies our provided extension.js file to the correct location on disk
InputStream reader = null;
FileOutputStream fileOutputStream = null;