mirror of
https://github.com/gryf/wicd.git
synced 2025-12-22 22:27:59 +01:00
curses/netentry_curses.py:
Made the password field actually keep its "passwordiness" when we go to the
buttons.
in/scripts=wicd-client.in:
Added support for X being off and wicd-curses not being there
This commit is contained in:
@@ -192,9 +192,14 @@ class AdvancedSettingsDialog(urwid.WidgetWrap):
|
|||||||
self.overlay.mouse_event( dim,
|
self.overlay.mouse_event( dim,
|
||||||
event, button, col, row,
|
event, button, col, row,
|
||||||
focus=True)
|
focus=True)
|
||||||
|
else:
|
||||||
k = self.overlay.keypress(dim, k)
|
k = self.overlay.keypress(dim, k)
|
||||||
if k in ('up','page up'):
|
if k in ('up','page up'):
|
||||||
self._w.set_focus('body')
|
self._w.set_focus('body')
|
||||||
|
# Until I figure out a better way to do this, then this will
|
||||||
|
# have to do.
|
||||||
|
self._w.body.get_focus()[0].get_focus()._invalidate()
|
||||||
|
#self._w.body.keypress(dim,'down')
|
||||||
elif k in ('down','page down'):
|
elif k in ('down','page down'):
|
||||||
self._w.set_focus('footer')
|
self._w.set_focus('footer')
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,8 @@ fi
|
|||||||
if [ -e "%DOCDIR%WHEREAREMYFILES" ] && [ ! -L "$HOME/.wicd/WHEREAREMYFILES" ]; then
|
if [ -e "%DOCDIR%WHEREAREMYFILES" ] && [ ! -L "$HOME/.wicd/WHEREAREMYFILES" ]; then
|
||||||
ln -s "%DOCDIR%WHEREAREMYFILES" "$HOME/.wicd/WHEREAREMYFILES"
|
ln -s "%DOCDIR%WHEREAREMYFILES" "$HOME/.wicd/WHEREAREMYFILES"
|
||||||
fi
|
fi
|
||||||
if [ "$DISPLAY" = "" ] && [ -x "%BIN%wicd-curses" ]; then
|
if [ "$DISPLAY" = "" ]; then
|
||||||
|
if [ -x "%BIN%wicd-curses" ]; then
|
||||||
if [ ! -f "$HOME/.wicd/CLIENT_CURSES_WARNING" ]; then
|
if [ ! -f "$HOME/.wicd/CLIENT_CURSES_WARNING" ]; then
|
||||||
printf "NOTICE: You do not have an X server active on this console, \n"
|
printf "NOTICE: You do not have an X server active on this console, \n"
|
||||||
printf "so ${BOLD}${BLUE}wicd-curses${NC} will be started instead. \n"
|
printf "so ${BOLD}${BLUE}wicd-curses${NC} will be started instead. \n"
|
||||||
@@ -31,6 +32,14 @@ launched outside of X (and then recreate this file again).
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
exec %BIN%wicd-curses
|
exec %BIN%wicd-curses
|
||||||
fi
|
|
||||||
|
|
||||||
exec python -O %LIB%wicd-client.py $@
|
else
|
||||||
|
printf "NOTICE: You do not have an X server active on this console, \n"
|
||||||
|
printf "but you do not appear to have ${BOLD}${BLUE}wicd-curses${NC}\n"
|
||||||
|
printf "installed on this system. We'd normally be running it here.\n"
|
||||||
|
printf "Please see the wicd-client manual page for more information.\n"
|
||||||
|
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
exec python -O %LIB%wicd-client.py $@
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user