diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-03-02 14:06:46 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-03-02 14:06:46 +0000 |
commit | 03e52feadb296d8fc5d8a5ca2edf0d0ed340f778 (patch) | |
tree | d08983176b45321bc9a737dc4a767631c321c7b0 | |
parent | dbac4a23940db92bc19b00b1dfa9f07cade5ebe7 (diff) | |
download | mgaonline-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-x | mdkapplet | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |