Skip to content

xdg-open: Fix unquoted variable expansion when looking for .desktop files

Ghost User requested to merge (removed):master into master

The recursive find algorithm for the .desktop files has an unquoted path expansion in the generic case, when no desktop environment specific tool is found. Hence, if we have a directory layout containing something along the lines of

~/.local/share/applications/foo bar/

Then the recursion will expand into searching in:

  • ~/.local/share/applications/foo
  • ~/bar/*

instead of ~/.local/share/applications/foo bar/*

Merge request reports