Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/Padre/Wx/Constant.pm
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ use constant WANT => qw{
:listctrl
:locale
:menu
:miniframe
:misc
:notebook
:ownerdrawncombobox
Expand Down
15 changes: 10 additions & 5 deletions lib/Padre/Wx/Main.pm
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ use Padre::Wx::Role::Timer ();
use Padre::Wx::Role::Idle ();
use Padre::Locale::T;
use Padre::Logger;
use File::Which 'which';

our $VERSION = '1.02';
our $COMPATIBLE = '0.91';
our @ISA = qw{
Expand Down Expand Up @@ -2955,13 +2957,16 @@ sub run_command {
} elsif (Padre::Constant::UNIX) {

if ( defined $ENV{COLORTERM} ) {
if ( $ENV{COLORTERM} eq 'gnome-terminal' ) {

my @terminals = ();
push @terminals, which('gnome-terminal');
push @terminals, which('x-terminal-emulator');
push @terminals, which('konsole');
push @terminals, which('xterm');
if ( @terminals ) {
#Gnome-Terminal line format:
#gnome-terminal -e "bash -c \"prove -lv t/96_edit_patch.t; exec bash\""
system qq($ENV{COLORTERM} -e "bash -c \\\"$cmd; exec bash\\\"" & );
} else {
system qq(xterm -sb -e "$cmd; sleep 1000" &);
my $term = $terminals[0];
system qq($term -e "bash -c \\\"$cmd; echo; echo Press any key to exit....; read -n 1; exit 0;\\\"" & );
}
}
} elsif (Padre::Constant::MAC) {
Expand Down