extensionUtils: Load user extensions before system extensions

https://bugzilla.gnome.org/show_bug.cgi?id=673613
This commit is contained in:
Jasper St. Pierre 2012-04-06 14:02:23 -04:00
parent bfbf812148
commit 5ea5806730

View File

@ -184,11 +184,11 @@ function scanExtensionsInDirectory(callback, dir, type) {
function scanExtensions(callback) {
let systemDataDirs = GLib.get_system_data_dirs();
scanExtensionsInDirectory(callback, userExtensionsDir, ExtensionType.PER_USER);
for (let i = 0; i < systemDataDirs.length; i++) {
let dirPath = GLib.build_filenamev([systemDataDirs[i], 'gnome-shell', 'extensions']);
let dir = Gio.file_new_for_path(dirPath);
if (dir.query_exists(null))
scanExtensionsInDirectory(callback, dir, ExtensionType.SYSTEM);
}
scanExtensionsInDirectory(callback, userExtensionsDir, ExtensionType.PER_USER);
}