summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/net_applet5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/net_applet b/bin/net_applet
index c48612a..05a2a37 100755
--- a/bin/net_applet
+++ b/bin/net_applet
@@ -25,6 +25,7 @@ use Gtk2::TrayIcon;
use ugtk2 qw(:create :helpers :wrappers :dialogs);
my $onstartupfile = "$ENV{HOME}/.net_applet";
+my $system_file = '/etc/sysconfig/drakx-net';
shouldStart() or die "$onstartupfile should be set to TRUE or use net_applet --force\n";
#- Allow multiple instances, but only one per user:
@@ -51,6 +52,8 @@ my %pixbufs =
);
my %wireless_networks;
+my %global_settings = getVarsFromSh($system_file);
+
sub get_state_message {
my ($o_interface) = @_;
my $interface = $o_interface || $current_interface;
@@ -145,7 +148,7 @@ gtkadd(my $icon = Gtk2::TrayIcon->new("Net_Applet"),
$icon->show_all;
my ($dbus, $monitor, $ifw, $interactive_cb, $ifw_alert);
-eval { $dbus = dbus_object::system_bus() };
+eval { $dbus = dbus_object::system_bus() } if !defined($global_settings{NET_APPLET_DBUS}) || text2bool($global_settings{NET_APPLET_DBUS});
eval { $monitor = network::monitor->new($dbus) } if $dbus;
eval {
$ifw = network::ifw->new($dbus, sub {