Fixed xdg-data-dirs issue

This commit is contained in:
Yessiest 2022-09-04 22:43:34 +04:00
parent 0a6e05e930
commit 8c827368dc
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ menu_utils.wm_name = ""
local desktop_dirs = {} local desktop_dirs = {}
local desktop_dirs_complete = 0 local desktop_dirs_complete = 0
local icon_dirs = {} 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) "/usr/share:/usr/local/share")..":"..os.getenv("HOME").."/.local/share"):gsub("[^:]*",function(path)
if gears.filesystem.dir_readable(path.."/applications") then if gears.filesystem.dir_readable(path.."/applications") then
table.insert(desktop_dirs, path.."/applications") table.insert(desktop_dirs, path.."/applications")