From 702d9ee2d1f26e1c5c601d19a187c0377fda9cd0 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 6 Aug 2007 13:25:52 +0000 Subject: add "\n" to exception in order not to fire up drakbug (#32292) --- bin/net_applet | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/net_applet b/bin/net_applet index cd12713..e96475a 100644 --- a/bin/net_applet +++ b/bin/net_applet @@ -26,10 +26,8 @@ use Gtk2::TrayIcon; use ugtk2 qw(:create :helpers :wrappers :dialogs); my $onstartupfile = "$ENV{HOME}/.net_applet"; -if (!shouldStart()) { - warn "$onstartupfile should be set to TRUE or use net_applet --force"; - exit(1); -} +shouldStart() or die "$onstartupfile should be set to TRUE or use net_applet --force\n"; + #- Allow multiple instances, but only one per user: is_running('net_applet') and die "net_applet already running\n"; -- cgit v1.2.1