aboutsummaryrefslogtreecommitdiffstats
path: root/Module.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Module.pm')
-rw-r--r--Module.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/Module.pm b/Module.pm
index a8803fcb..48eb5bdc 100644
--- a/Module.pm
+++ b/Module.pm
@@ -108,9 +108,11 @@ sub removeButton {
sub start {
my $self = shift;
- my $err = yui::YUI::app()->runInTerminal( $self->{launch} . " --ncurses");
- if ($err == -1) {
- system($self->{launch});
+ if ($self->{launch}) {
+ my $err = yui::YUI::app()->runInTerminal( $self->{launch} . " --ncurses");
+ if ($err == -1) {
+ system($self->{launch});
+ }
}
}