summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-30 18:42:00 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-30 18:42:00 +0000
commit67146b24a64ddd56258fe4560275ce4bd4ef5b75 (patch)
tree0872eb727f9114ac5b5b570111ea8006574c2fe6 /bin
parent0257f899b101faf1a859a4220e9c638d6e21b6f1 (diff)
downloaddrakx-net-67146b24a64ddd56258fe4560275ce4bd4ef5b75.tar
drakx-net-67146b24a64ddd56258fe4560275ce4bd4ef5b75.tar.gz
drakx-net-67146b24a64ddd56258fe4560275ce4bd4ef5b75.tar.bz2
drakx-net-67146b24a64ddd56258fe4560275ce4bd4ef5b75.tar.xz
drakx-net-67146b24a64ddd56258fe4560275ce4bd4ef5b75.zip
allow to disable D-Bus usage by setting DBUS=no in /etc/sysconfig/net_applet
(saves about 5200 kB of RSS memory) this disables Interactive Firewall and switching wireless network in the background without being root
Diffstat (limited to 'bin')
-rwxr-xr-xbin/net_applet2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/net_applet b/bin/net_applet
index 73175e3..defa97c 100755
--- a/bin/net_applet
+++ b/bin/net_applet
@@ -141,7 +141,7 @@ my %actions = (
my $icon = Gtk2::StatusIcon->new;
my ($dbus, $monitor, $ifw, $interactive_cb, $ifw_alert);
-eval { $dbus = dbus_object::system_bus() };
+eval { $dbus = dbus_object::system_bus() } if !defined($global_settings{DBUS}) || text2bool($global_settings{DBUS});
eval { $monitor = network::monitor->new($dbus) } if $dbus;
eval {
$ifw = network::ifw->new($dbus, sub {