1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-31 04:55:52 +01:00

curses/prefs_curses.py:

Finished refactoring to accommodate the ComboBox changes
curses/wicd-curses.py:
  Moved some of the keybinding code around
in/other=WHEREAREMYFILES.in: ADDED.
  File telling the user where the wicd config files are.  Usually symlinked to
    ~/.wicd/WHEREAREMYFILES and installed to the documentation directory
in/scripts=wicd-client.in:
  Make ~/.wicd and link WHEREAREMYFILES if it has not been done so already.
  Start wicd-curses if there is no X server on this console
    (determined by the presence of $DISPLAY), and add a file detailing this
man/wicd-client.1: Added note about wicd-client starting wicd-curses
setup.py: Install WHEREAREMYFILES along with the rest of the documentation
This commit is contained in:
Andrew Psaltis
2009-01-11 13:05:01 -05:00
parent 099ca813fb
commit 84cb49a6fc
6 changed files with 72 additions and 10 deletions

View File

@@ -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

View File

@@ -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<<EOF
This file is what wicd-client looks for so that it doesn't try to tell you that
it is trying to launch the curses client so that it doesn't surprise non-
technical users.
Please keep this file. If you remove it, then wicd-client will bark at
you if you try to launch wicd-client on a screen that is not running X.
Or, you could just run "touch ~/.wicd/CLIENT_CURSES_WARNING", and the same
objective will be met.
Have a nice day.
~The Wicd Developers
EOF
#touch ~/.wicd/CLIENT_CURSES_WARNING
fi
exec %BIN%wicd-curses
fi
exec python -O %LIB%wicd-client.py $@