From 16c0585b95354bb749cdd365acf7402191db88e7 Mon Sep 17 00:00:00 2001 From: Tim Lunn Date: Sat, 8 Dec 2012 11:42:09 +1100 Subject: [PATCH] fileUtils: correctly determine file type for symbolic links Extensions in a folder that is a symbolic link do not get loaded, since the returned file type is unknown. https://bugzilla.gnome.org/show_bug.cgi?id=689868 --- js/misc/fileUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/misc/fileUtils.js b/js/misc/fileUtils.js index af6b378b2..120a59102 100644 --- a/js/misc/fileUtils.js +++ b/js/misc/fileUtils.js @@ -7,7 +7,7 @@ const Params = imports.misc.params; function listDirAsync(file, callback) { let allFiles = []; - file.enumerate_children_async(Gio.FILE_ATTRIBUTE_STANDARD_NAME, + file.enumerate_children_async('standard::name,standard::type', Gio.FileQueryInfoFlags.NONE, GLib.PRIORITY_LOW, null, function (obj, res) { let enumerator = obj.enumerate_children_finish(res); @@ -33,7 +33,7 @@ function _collectFromDirectoryAsync(dir, loadState) { loadState.loadedCallback(loadState.data); } - dir.query_info_async('standard:type', Gio.FileQueryInfoFlags.NONE, + dir.query_info_async('standard::type', Gio.FileQueryInfoFlags.NONE, GLib.PRIORITY_DEFAULT, null, function(object, res) { try { object.query_info_finish(res);