refresh wicd config each time

pull/40/head
TomasM 2017-12-24 06:30:01 -05:00
parent 5e3e15e959
commit 3a3c5c867a
5 changed files with 22 additions and 4 deletions

View File

@ -4,7 +4,7 @@
[exec] (Web Browser) { fbstartupnotify && chromium }
[exec] (Text Editor) { fbstartupnotify && leafpad }
[exec] (Calculator) { fbstartupnotify && qalculate }
[exec] (Network Manager) { fbstartupnotify && wicd-gtk --no-tray }
[exec] (Network Manager) { fbstartupnotify && wicd-manager }
[exec] (Run) { fbappselect }
[separator]
[workspaces] (Workspaces ...)

View File

@ -18,4 +18,3 @@ flush_tool = 0
sudo_app = 0
prefer_wired = False
show_never_connect = True

View File

@ -14,4 +14,3 @@ predisconnectscript = None
postdisconnectscript = None
encryption_enabled = None
default = True

View File

@ -0,0 +1,20 @@
#!/bin/bash
# check if gui is runnning, if so bring it to front and do nothing more
if pgrep wicd-client; then
xdotool search --name "Wicd Network Manager" windowactivate
exit
fi
CONF=/etc/wicd/manager-settings.conf
# remove previously configured settings so wicd can gather fresh ones
# then run wicd gtk gui application
service wicd stop
sed -i -r "s/^wireless_interface.*=.*//" $CONF
sed -i -r "s/^wired_interface.*=.*//" $CONF
sed -i -r "s/^wpa_driver.*=.*//" $CONF
service wicd start
# start gui client
wicd-client --no-tray

View File

@ -1,5 +1,5 @@
[Desktop Entry]
Exec=wicd-gtk --no-tray
Exec=wicd-manager
Icon=gnome_network_workgroup
Name=Net Manager
Terminal=false