From 23ae11681bacf5078d0546c7299525300be78f21 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 6 Aug 2007 13:17:56 +0000 Subject: prevent firing up drakbug when automatic startup is disabled (#32292) --- bin/net_applet | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin') 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"; -- cgit v1.2.1