diff --git a/lib/menubar/utils.lua b/lib/menubar/utils.lua index 20d61803..1f5f21c8 100644 --- a/lib/menubar/utils.lua +++ b/lib/menubar/utils.lua @@ -254,7 +254,8 @@ function utils.parse_dir(dir_path, callback) local function parser(dir, programs) local f = gio.File.new_for_path(dir) -- Except for "NONE" there is also NOFOLLOW_SYMLINKS - local enum, err = f:async_enumerate_children("standard::name", gio.FileQueryInfoFlags.NONE) + local query = gio.FILE_ATTRIBUTE_STANDARD_NAME .. "," .. gio.FILE_ATTRIBUTE_STANDARD_TYPE + local enum, err = f:async_enumerate_children(query, gio.FileQueryInfoFlags.NONE) if not enum then debug.print_error(err) return