From f2b52ea9db1723c9c53f5df8da4de7ce90d3129f Mon Sep 17 00:00:00 2001 From: Nick Malyon Date: Sat, 20 Oct 2012 00:45:09 +0100 Subject: [PATCH] Quote the path to hairtunes (required if the path contains spaces). --- shairport.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shairport.pl b/shairport.pl index 2af7473a..c53d52ad 100755 --- a/shairport.pl +++ b/shairport.pl @@ -673,7 +673,7 @@ sub conn_handle_request { $dec_args{ao_devicename} = $libao_devicename if defined $libao_devicename; $dec_args{ao_deviceid} = $libao_deviceid if defined $libao_deviceid; - my $dec = $hairtunes_cli . join(' ', '', map { sprintf "%s '%s'", $_, $dec_args{$_} } keys(%dec_args)); + my $dec = '"' . $hairtunes_cli . '"' . join(' ', '', map { sprintf "%s '%s'", $_, $dec_args{$_} } keys(%dec_args)); # print "decode command: $dec\n"; my $decoder = open2(my $dec_out, my $dec_in, $dec);