mirror of
https://github.com/gryf/wicd.git
synced 2025-12-27 17:02:30 +01:00
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
48 lines
1.5 KiB
Bash
Executable File
48 lines
1.5 KiB
Bash
Executable File
#!/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 $@
|