# HG changeset patch # User Christophe Lincoln # Date 1205368382 -3600 # Node ID 4817d0937e0662fd2b3b1fe082d7f9907c9e0376 # Parent 4eaba614e892a20209e09b55e6f398da795278a7 We dont need multi-wallpapers now (Thank Pascal) diff -r 4eaba614e892 -r 4817d0937e06 tinyutils/tazx --- a/tinyutils/tazx Wed Mar 12 21:08:51 2008 +0100 +++ b/tinyutils/tazx Thu Mar 13 01:33:02 2008 +0100 @@ -3,7 +3,7 @@ # Tazx - Ncurses X configuration for SliTaz GNU/Linux using Dialog boxes. # This tinyutils is part of slitaz-tools. # -# 20080306 - GNU gpl v3. +# 20080313 - GNU gpl v3. # : ${DIALOG=dialog} @@ -23,23 +23,6 @@ # Tazx functions # #################### -# Change backgroud image if the 3/4 is not respected. -change_jwm_background() -{ - if echo $NEW_SCREEN | grep -q '1280x1024'; then - sed -i s/'1024x768.png'/'1280x1024.png'/ $JWM_CONFIG - sed -i s/'1280x800.png'/'1280x1024.png'/ $JWM_CONFIG - fi - if echo $NEW_SCREEN | grep -q '1024x768'; then - sed -i s/'1280x1024.png'/'1024x768.png'/ $JWM_CONFIG - sed -i s/'1280x800.png'/'1024x768.png'/ $JWM_CONFIG - fi - if echo $NEW_SCREEN | grep -q '1280x800'; then - sed -i s/'1024x768.png'/'1280x800.png'/ $JWM_CONFIG - sed -i s/'1280x1024.png'/'1280x800.png'/ $JWM_CONFIG - fi -} - # Screen configuration dialog. screen_config_dialog() { @@ -204,15 +187,17 @@ if [ ! -f "$JWM_CONFIG" ]; then cp /etc/jwm/system.jwmrc $JWM_CONFIG fi - change_jwm_background - # In Live mode hacker JWM config dose not exist, this is - # because tazx is executed at boot time by root. + # In Live mode hacker/root JWM config dose not exist ans $HOME is + # ot set, this is because tazx is executed by boot scripts. if [ ! -f "/home/hacker/.jwmrc" ]; then JWM_CONFIG=/home/hacker/.jwmrc cp /etc/jwm/system.jwmrc $JWM_CONFIG - change_jwm_background chown hacker.hacker $JWM_CONFIG fi + if [ ! -f "/root/.jwmrc" ]; then + JWM_CONFIG=/root/.jwmrc + cp /etc/jwm/system.jwmrc $JWM_CONFIG + fi } # Creat ~/.xsession to keep the configuration selected (used