Utils: Enumerate children with standard attributes

This commit is contained in:
Romain Vigier
2022-05-16 15:18:50 +02:00
parent 36dd694126
commit f5ce940955
+1 -1
View File
@@ -48,7 +48,7 @@ function getInstalledResources(type) {
const resourcesDir = Gio.File.new_for_path(resourcesDirPath);
if (resourcesDir.query_file_type(Gio.FileQueryInfoFlags.NONE, null) !== Gio.FileType.DIRECTORY)
return;
const resourcesDirsEnumerator = resourcesDir.enumerate_children('', Gio.FileQueryInfoFlags.NONE, null);
const resourcesDirsEnumerator = resourcesDir.enumerate_children('standard::', Gio.FileQueryInfoFlags.NONE, null);
while (true) {
let resourceDirInfo = resourcesDirsEnumerator.next_file(null);
if (resourceDirInfo === null)