summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-03-02 14:06:46 +0000
committerDaouda Lo <daouda@mandriva.com>2004-03-02 14:06:46 +0000
commit03e52feadb296d8fc5d8a5ca2edf0d0ed340f778 (patch)
treed08983176b45321bc9a737dc4a767631c321c7b0
parentdbac4a23940db92bc19b00b1dfa9f07cade5ebe7 (diff)
downloadmgaonline-03e52feadb296d8fc5d8a5ca2edf0d0ed340f778.tar
mgaonline-03e52feadb296d8fc5d8a5ca2edf0d0ed340f778.tar.gz
mgaonline-03e52feadb296d8fc5d8a5ca2edf0d0ed340f778.tar.bz2
mgaonline-03e52feadb296d8fc5d8a5ca2edf0d0ed340f778.tar.xz
mgaonline-03e52feadb296d8fc5d8a5ca2edf0d0ed340f778.zip
- don't show main window if applet not configured
-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;