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:
Jasper St. Pierre 2011-08-26 17:33:52 -04:00
parent 90783c7cdf
commit 4fa8e2b59d

View File

@ -392,7 +392,8 @@ function init() {
let userExtensionsPath = GLib.build_filenamev([global.userdatadir, 'extensions']);
userExtensionsDir = Gio.file_new_for_path(userExtensionsPath);
try {
userExtensionsDir.make_directory_with_parents(null);
if (!userExtensionsDir.query_exists(null))
userExtensionsDir.make_directory_with_parents(null);
} catch (e) {
global.logError('' + e);
}