summaryrefslogtreecommitdiffstats
path: root/bin/net_applet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-06 13:17:56 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-06 13:17:56 +0000
commit23ae11681bacf5078d0546c7299525300be78f21 (patch)
tree132005daeef7c81cf98ee8ff544bd2aaf140c62a /bin/net_applet
parente5f9e2a1535d94ae030059b4a2637695b8939582 (diff)
downloaddrakx-net-23ae11681bacf5078d0546c7299525300be78f21.tar
drakx-net-23ae11681bacf5078d0546c7299525300be78f21.tar.gz
drakx-net-23ae11681bacf5078d0546c7299525300be78f21.tar.bz2
drakx-net-23ae11681bacf5078d0546c7299525300be78f21.tar.xz
drakx-net-23ae11681bacf5078d0546c7299525300be78f21.zip
prevent firing up drakbug when automatic startup is disabled (#32292)
Diffstat (limited to 'bin/net_applet')
-rw-r--r--bin/net_applet5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/net_applet b/bin/net_applet
index 7b645bd..cd12713 100644
--- a/bin/net_applet
+++ b/bin/net_applet
@@ -26,7 +26,10 @@ use Gtk2::TrayIcon;
use ugtk2 qw(:create :helpers :wrappers :dialogs);
my $onstartupfile = "$ENV{HOME}/.net_applet";
-shouldStart() or die "$onstartupfile should be set to TRUE or use net_applet --force";
+if (!shouldStart()) {
+ warn "$onstartupfile should be set to TRUE or use net_applet --force";
+ exit(1);
+}
#- Allow multiple instances, but only one per user:
is_running('net_applet') and die "net_applet already running\n";