extensionUtils: Remove userExtensionsDir

Make this less stateful

https://bugzilla.gnome.org/show_bug.cgi?id=677586
This commit is contained in:
Jasper St. Pierre
2012-06-03 23:13:15 -04:00
parent cdbe0bbf38
commit 5265884af9
4 changed files with 4 additions and 13 deletions

View File

@ -66,7 +66,7 @@ function gotExtensionZipFile(session, message, uuid) {
return;
}
let dir = ExtensionUtils.userExtensionsDir.get_child(uuid);
let dir = Gio.File.new_for_path(GLib.build_filenamev([global.userdatadir, 'extensions', uuid]));
try {
if (!dir.query_exists(null))
dir.make_directory_with_parents(null);