diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2012-12-25 12:41:00 +0100 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2012-12-25 12:41:00 +0100 |
commit | f866607c676495ddfd0e3e7d80f56931d95d73cd (patch) | |
tree | 07f12fbd60fe19bc92c83cd3e02d977c93cc06d6 /i3-dmenu-desktop | |
parent | 0045cfa637b802801fb0b2e27013f1e61264d081 (diff) | |
download | i3-f866607c676495ddfd0e3e7d80f56931d95d73cd.tar.gz i3-f866607c676495ddfd0e3e7d80f56931d95d73cd.zip |
i3-dmenu-desktop: strip newlines from dmenu ≥ 4.4 (Thanks saurabhgeek92)
fixes #891
Diffstat (limited to 'i3-dmenu-desktop')
-rwxr-xr-x | i3-dmenu-desktop | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/i3-dmenu-desktop b/i3-dmenu-desktop index 5bf77c2f..80d33c23 100755 --- a/i3-dmenu-desktop +++ b/i3-dmenu-desktop @@ -287,6 +287,8 @@ my $status = ($? >> 8); exit $status unless $status == 0; my $choice = <$dmenu_out>; +# dmenu ≥ 4.4 adds a newline after the choice +chomp($choice); my $app; # Exact match: the user chose “Avidemux (GTK+)” if (exists($choices{$choice})) { |