i3 - improved tiling WM


Bugfix: Quote external shell script that is called in some cases.

Patch status: needinfo

Patch by Stefan Schroeder

Long description:

Now the call to the script that was created on-the-fly will
also work when TMPDIR contains white space.

fixes #971

To apply this patch, use:
curl http://cr.i3wm.org/patch/64/raw.patch | git am

b/i3-dmenu-desktop

18
@@ -401,13 +401,13 @@ if (exists($app->{Terminal}) && $app->{Terminal}) {
19
     binmode($fh, ':utf8');
20
     say $fh <<EOT;
21
 #!/bin/sh
22
-rm $filename
23
+rm "$filename"
24
 exec $exec
25
 EOT
26
     close($fh);
27
     chmod 0755, $filename;
28
 
29
-    $cmd = qq|exec i3-sensible-terminal -e "$filename"|;
30
+    $cmd = qq|exec i3-sensible-terminal -e "'$filename'"|;
31
 } else {
32
     # i3 executes applications by passing the argument to i3’s “exec” command
33
     # as-is to $SHELL -c. The i3 parser supports quoted strings: When a string