diff options
Diffstat (limited to 'perl-install/standalone/net_applet')
-rw-r--r-- | perl-install/standalone/net_applet | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet index 66f6849e1..15e879cf9 100644 --- a/perl-install/standalone/net_applet +++ b/perl-install/standalone/net_applet @@ -73,7 +73,8 @@ Gtk2->main; ugtk2::exit(0); sub is_running { - grep { $_ !~ /^\s*$$\b/ && /\Q$_[0]/ } `ps -u $ENV{USER}`; + my ($name) = @_; + any { !/^\s*$$\b/ && /\b\Q$name\E$/ } `ps -u $ENV{USER}`; } sub shouldStart() { my %p = getVarsFromSh($onstartupfile); |