extensionSystem: Don't try to make the user extensinons dir if it exists
this removes the "Error invoking Gio.make_directory_with_parents: Error creating directory: File exists" spam from the Errors tab of the Looking Glass
This commit is contained in:
parent
90783c7cdf
commit
4fa8e2b59d
@ -392,6 +392,7 @@ function init() {
|
|||||||
let userExtensionsPath = GLib.build_filenamev([global.userdatadir, 'extensions']);
|
let userExtensionsPath = GLib.build_filenamev([global.userdatadir, 'extensions']);
|
||||||
userExtensionsDir = Gio.file_new_for_path(userExtensionsPath);
|
userExtensionsDir = Gio.file_new_for_path(userExtensionsPath);
|
||||||
try {
|
try {
|
||||||
|
if (!userExtensionsDir.query_exists(null))
|
||||||
userExtensionsDir.make_directory_with_parents(null);
|
userExtensionsDir.make_directory_with_parents(null);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
global.logError('' + e);
|
global.logError('' + e);
|
||||||
|
Loading…
Reference in New Issue
Block a user