Skip to content

Commit

Permalink
fix #4697, adds backslashes quotation for exec (#4699)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio E. Nemirowski <[email protected]>
  • Loading branch information
532910 authored Dec 6, 2021
1 parent 7294524 commit 70f23ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion i3-dmenu-desktop
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@ EOT
# double quote which is NOT preceded by a backslash (\).
#
# Therefore, we escape all double quotes (") by replacing them with \"
$exec =~ s/"/\\"/g;
$exec =~ s/\\"/\\\\\\"/g;
$exec =~ s/([^\\])"/$1\\"/g;

if (exists($app->{StartupNotify}) && !$app->{StartupNotify}) {
$nosn = '--no-startup-id';
Expand Down

0 comments on commit 70f23ca

Please sign in to comment.