diff --git a/i3-dmenu-desktop b/i3-dmenu-desktop index 4a2371e2..2c54233d 100755 --- a/i3-dmenu-desktop +++ b/i3-dmenu-desktop @@ -410,7 +410,7 @@ $exec =~ s/%k/$location/g; $exec =~ s/%%/%/g; if (exists($app->{Path}) && $app->{Path} ne '') { - $exec = 'cd ' . $app->{Path} . ' && ' . $exec; + $exec = 'cd ' . quote($app->{Path}) . ' && ' . $exec; } my $nosn = '';