Fixed system tray UID to match GNOME extension
This commit is contained in:
parent
f7e9660233
commit
d00c99fb4f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user