|
@ -17,7 +17,7 @@ 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 |
|
|
((os.getenv("XDG_DATA_DIRS") or |
|
|
"/usr/share/applications:/usr/local/share/applications")..":/home/yessiest/.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") |
|
|
end |
|
|
end |
|
|