From 4fa8e2b59d50e4d21a75be0184e478809a2da338 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 26 Aug 2011 17:33:52 -0400 Subject: [PATCH] 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 --- js/ui/extensionSystem.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js index 38eeea3ef..5941d934a 100644 --- a/js/ui/extensionSystem.js +++ b/js/ui/extensionSystem.js @@ -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); }