Skip to content

Commit

Permalink
Merge pull request #25 from rjhwelsh/Fix_missing_desktop_files_and_fo…
Browse files Browse the repository at this point in the history
…lders

desktop.lua: Fix search for desktop files #25
  • Loading branch information
lcpz authored Aug 29, 2021
2 parents e4ac597 + 02b70a8 commit ba8a06b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ end
-- @return files table with found entries
function desktop.parse_dirs_and_files(dir)
local files = {}
local paths = pipelines('find '..dir..' -maxdepth 1 -type d | tail -1')
local paths = pipelines('find '..dir..' -maxdepth 1 -type d |sort|tail -n +1')
for path in paths do
if path:match("[^/]+$") then
local file = {}
Expand Down

0 comments on commit ba8a06b

Please sign in to comment.