summaryrefslogtreecommitdiffstats
path: root/bin/net_applet
diff options
context:
space:
mode:
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";