diff --git a/curses/prefs_curses.py b/curses/prefs_curses.py index c771798..49737e0 100755 --- a/curses/prefs_curses.py +++ b/curses/prefs_curses.py @@ -345,7 +345,7 @@ class PrefsDialog(urwid.WidgetWrap): self.search_dom.get_edit_text()) daemon.SetWirelessInterface(self.wless_edit.get_edit_text()) daemon.SetWiredInterface(self.wired_edit.get_edit_text()) - daemon.SetWPADriver(self.wpadrivers[self.wpa_cbox.get_selected()[1]]) + daemon.SetWPADriver(self.wpadrivers[self.wpa_cbox.get_focus()[1]]) daemon.SetAlwaysShowWiredInterface(self.always_show_wired_checkb.get_state()) daemon.SetAutoReconnect(self.auto_reconn_checkb.get_state()) daemon.SetDebugMode(self.debug_mode_checkb.get_state()) @@ -357,7 +357,7 @@ class PrefsDialog(urwid.WidgetWrap): else: daemon.SetWiredAutoConnectMethod(1) - daemon.SetBackend(self.backends[self.backend_cbox.get_selected()[1]]) + daemon.SetBackend(self.backends[self.backend_cbox.get_focus()[1]]) # External Programs Tab if self.dhcp0.get_state(): diff --git a/curses/wicd-curses.py b/curses/wicd-curses.py index cedecc2..10eaecf 100644 --- a/curses/wicd-curses.py +++ b/curses/wicd-curses.py @@ -576,12 +576,6 @@ class appGUI(): self.update_ui() if "A" in keys: about_dialog(self.frame) - for k in keys: - if k == "window resize": - self.size = ui.get_cols_rows() - continue - self.frame.keypress( self.size, k ) - if "C" in keys: focus = self.thePile.get_focus() if focus == self.wiredCB: @@ -593,6 +587,12 @@ class appGUI(): #self.netentry = NetEntryBase(dbusmanager.get_dbus_ifaces()) #self.netentry.run(ui,self.size,self.frame) + for k in keys: + if k == "window resize": + self.size = ui.get_cols_rows() + continue + self.frame.keypress( self.size, k ) + if " " in keys: focus = self.thePile.get_focus() if focus == self.wiredCB: diff --git a/in/other=WHEREAREMYFILES.in b/in/other=WHEREAREMYFILES.in new file mode 100644 index 0000000..61363e9 --- /dev/null +++ b/in/other=WHEREAREMYFILES.in @@ -0,0 +1,14 @@ +If you are reading this, you are probably wondering why your Wicd configuration +files are not here. What follows is a summary of the folders that wicd uses. + +For a more detailed (and complete) description what is in each directory, consult the +man pages for wicd(8) and wicd-curses(8). + +~/.wicd + User-dependent configuration files, only used by wicd-curses + +%ETC% + Global configuration files + +%NETWORKS% + Individual network configurations diff --git a/in/scripts=wicd-client.in b/in/scripts=wicd-client.in index d79a061..f535254 100755 --- a/in/scripts=wicd-client.in +++ b/in/scripts=wicd-client.in @@ -1,2 +1,47 @@ #!/bin/bash +BOLD=`tput bold` +BLUE=`tput setaf 4` +NC=`tput sgr0` +# check_firstrun() +if [ ! -d ~/.wicd ]; then + mkdir ~/.wicd +fi +# Make sure the user knows WHEREAREMYFILES ;-) +if [ -e %DOCDIR%WHEREAREMYFILES ] && [ ! -L ~/.wicd/WHEREAREMYFILES ]; then + ln -s %DOCDIR%WHEREAREMYFILES ~/.wicd/WHEREAREMYFILES +fi +if [ "$DISPLAY" = "" ] && [ -x "%BIN%wicd-curses" ]; then + if [ ! -f ~/.wicd/CLIENT_CURSES_WARNING ]; then + echo "NOTICE: We see that you don't have an X server active on this console." + echo "We will now be starting ${BOLD}${BLUE}wicd-curses${NC}. If you desire" + echo "more information about what is happening here, please read:" + echo + echo "man wicd-client" + echo "-or-" + echo "man wicd-curses" + echo + echo "We apologize for any inconvenience. This message will not be displayed again." + echo "Please press enter to continue..." + + read junk + cat >>~/.wicd/CLIENT_CURSES_WARNING<