summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet6
1 files changed, 4 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 375100e9..9db9c37a 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -96,7 +96,9 @@ gtkadd(my $icon = Gtk2::TrayIcon->new("MdkApplet"),
)
);
$eventbox->signal_connect(button_press_event => sub {
- $_[1]->button == 1 and showMainWindow(); #just for testing
+ if ($_[1]->button == 1) {
+ if (-e conffile) { showMainWindow() } else { configure }
+ }
$_[1]->button == 3 && $menu and $menu->popup(undef, undef, undef, undef, $_[1]->button, $_[1]->time);
});
@@ -232,7 +234,7 @@ sub browser {
$Br{$wm}
}
sub displayLogs {
- system "logdrake --explain=drakxtools &"
+ system "/usr/sbin/logdrake --explain=drakxtools &"
}
sub setState {
my $state_type = shift;