This PR fixes an issue caused by filenames containing ' characters.
For example, a file named Sid Meier's Civilization IV.desktop yields the following description:
╭────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ /usr/bin/sway-launcher-desktop: eval: line 59: unexpected EOF while looking for matching `'' │
│ /usr/bin/sway-launcher-desktop: eval: line 60: syntax error: unexpected end of file │
│ /usr/bin/sway-launcher-desktop: Error on line 234: eval "${PROVIDER_ARGS[1]//\{1\}/${2}}" │
╰────────────────────────────────────────────────────────────────────────────────────────────────────╯
This is fixed by wrapping the argument to describe-desktop in double quotes.
This also applies to the 'command' provider and describe-command.
This PR fixes an issue caused by filenames containing
'
characters. For example, a file namedSid Meier's Civilization IV.desktop
yields the following description:This is fixed by wrapping the argument to
describe-desktop
in double quotes. This also applies to the 'command' provider anddescribe-command
.