From f866607c676495ddfd0e3e7d80f56931d95d73cd Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 25 Dec 2012 12:41:00 +0100 Subject: [PATCH] =?UTF-8?q?i3-dmenu-desktop:=20strip=20newlines=20from=20d?= =?UTF-8?q?menu=20=E2=89=A5=204.4=20(Thanks=20saurabhgeek92)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #891 --- i3-dmenu-desktop | 2 ++ 1 file changed, 2 insertions(+) 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})) {