summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/net_applet9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/net_applet b/bin/net_applet
index 78dc311..03322b4 100755
--- a/bin/net_applet
+++ b/bin/net_applet
@@ -175,7 +175,9 @@ $eventbox->signal_connect(button_press_event => sub {
run_drakids();
} elsif ($simple_menu) {
$simple_menu->popup(undef, undef, undef, undef, $_[1]->button, $_[1]->time);
- }
+ } else {
+ run_netcenter();
+ }
} elsif ($_[1]->button == 3 && $menu) {
$menu->popup(undef, undef, undef, undef, $_[1]->button, $_[1]->time);
}
@@ -211,6 +213,10 @@ sub shouldStart() {
sub run_net_monitor() {
run_program::raw({ detach => 1 }, '/usr/sbin/net_monitor', '--defaultintf', $current_interface) unless is_running('net_monitor');
}
+sub run_netcenter {
+ my ($o_ap) = @_;
+ run_program::raw({ detach => 1 }, '/usr/bin/draknetcenter') unless is_running('netcenter');
+}
sub run_drakroam {
my ($o_ap) = @_;
run_program::raw({ detach => 1 }, '/usr/sbin/drakroam', if_($o_ap, "--ap=$o_ap")) unless is_running('drakroam');
@@ -366,7 +372,6 @@ sub disable_ifw_alert() {
sub update_applet() {
$wireless_device = detect_devices::get_wireless_interface();
- generate_simple_menu();
generate_menu();
update_tray_icon();