diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-08-30 10:06:43 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-08-30 10:06:43 +0000 |
commit | 30811c92d82acbf7bd024df81da0bbb1f95b1b60 (patch) | |
tree | f733a78a5106379e6e7f9d61608e540305440af0 /perl-install | |
parent | 439370a46f4f4304181578a0c1b6f5c7cba1b5b2 (diff) | |
download | drakx-30811c92d82acbf7bd024df81da0bbb1f95b1b60.tar drakx-30811c92d82acbf7bd024df81da0bbb1f95b1b60.tar.gz drakx-30811c92d82acbf7bd024df81da0bbb1f95b1b60.tar.bz2 drakx-30811c92d82acbf7bd024df81da0bbb1f95b1b60.tar.xz drakx-30811c92d82acbf7bd024df81da0bbb1f95b1b60.zip |
is_running returns a boolean which would never be > 1
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/standalone/net_applet | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet index 531368507..55217a75b 100644 --- a/perl-install/standalone/net_applet +++ b/perl-install/standalone/net_applet @@ -17,7 +17,7 @@ my ($menu, $timeout); my $onstartupfile = "$ENV{HOME}/.net_applet"; add_icon_path("/usr/share/libDrakX/pixmaps/"); # Allow multiple instances, but only one per user: -is_running('net_applet') > 1 and die "net_applet already running\n"; +is_running('net_applet') and die "net_applet already running\n"; my $prog_name = "/usr/bin/net_applet"; my $current_md5 = md5file($prog_name); @@ -53,7 +53,7 @@ gtkadd(my $icon = Gtk2::TrayIcon->new("Net_Applet"), ); $eventbox->signal_connect(button_press_event => sub { if ($_[1]->button == 1) { - is_running('net_monitor') > 1 or netMonitor() + is_running('net_monitor') or netMonitor() } $_[1]->button == 3 && $menu and $menu->popup(undef, undef, undef, undef, $_[1]->button, $_[1]->time); }); |