Ticket #1434: terminal.patch
| File terminal.patch, 737 bytes (added by bennie, 14 months ago) |
|---|
-
lib/Padre/Wx/Main.pm
2945 2945 system qq(xterm -sb -e "$cmd; sleep 1000" &); 2946 2946 } 2947 2947 } 2948 } elsif (Padre::Constant:: UNIX) {2948 } elsif (Padre::Constant::MAC) { 2949 2949 2950 # tome 2950 my $pwd = $self->current->document->project_dir(); 2951 $cmd =~ s/"/\\"/g; 2952 # Applescript can throw spurious errors on STDERR: http://helpx.adobe.com/photoshop/kb/unit-type-conversion-error-applescript.html 2953 system qq(osascript -e 'tell app "Terminal"\n\tdo script "cd $pwd; clear; $cmd;"\nend tell'\n); 2954 2951 2955 } else { 2952 2956 system qq(xterm -sb -e "$cmd; sleep 1000" &); 2953 2957 }
