diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-06 13:17:56 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-06 13:17:56 +0000 |
commit | 23ae11681bacf5078d0546c7299525300be78f21 (patch) | |
tree | 132005daeef7c81cf98ee8ff544bd2aaf140c62a /bin/net_applet | |
parent | e5f9e2a1535d94ae030059b4a2637695b8939582 (diff) | |
download | drakx-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_applet | 5 |
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"; |