From 8c827368dce14773b844a90630cccca0c2729f48 Mon Sep 17 00:00:00 2001 From: Yessiest Date: Sun, 4 Sep 2022 22:43:34 +0400 Subject: [PATCH] Fixed xdg-data-dirs issue --- modules/xdg_data.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/xdg_data.lua b/modules/xdg_data.lua index 8c24d4e..87db66d 100644 --- a/modules/xdg_data.lua +++ b/modules/xdg_data.lua @@ -16,7 +16,7 @@ menu_utils.wm_name = "" local desktop_dirs = {} local desktop_dirs_complete = 0 local icon_dirs = {} -((os.getenv("XDG_DATA_DIRS") or +((table.concat(gears.filesystem.get_xdg_data_dirs(),":") or "/usr/share:/usr/local/share")..":"..os.getenv("HOME").."/.local/share"):gsub("[^:]*",function(path) if gears.filesystem.dir_readable(path.."/applications") then table.insert(desktop_dirs, path.."/applications")