← Back to team overview

torios-dev team mailing list archive

Re: TESTING: Re: JWM 2.4.0 and beyond

 

On 08/22/2017 11:41 AM, Cinque Port Computers wrote:
>
> .jwmrc.old file attached.
>
>
> ...
Hi Jack...
I cannot figure this out.
Here is a snip of the code:

### lots of code

postintME="$SUDO_USER"

## code snipped

[[ -n "$postintME" ]] && [[ -d "/home/$postintME" ]] &&
HOMMIE="/home/$postintME"

### more code snipped

if [[ -f "$HOMMIE/.jwmrc" ]]        then          cp "$HOMMIE/.jwmrc"
"$HOMMIE/.jwmrc.old" && LOG "copied jwmrc file to backup
($HOMMIE/.jwmrc.old)"## XSLTFILE up top## this is currently broken TODO
fixme# update our jwmrc to new version (cleans up old tag
issues)          if [[ -f "$XSLTFILE" ]]           then            if [[
-n $(which xsltproc) ]]            then              xsltproc
"$XSLTFILE" "$HOMMIE/.jwmrc.old" > "~/.jwmrc"             
retval=$?              case $retval in                0)LOG "It
worked... see: $(grep '<Mouse context' $HOMMIE/.jwmrc)";;               
*)LOG "xsltproc exited $retval... something went wrong";;             
esac            else              LOG "xsltproc not found! please
install this!"            fi          else             LOG "$XSLTFILE
was not found."          fi        else           LOG "$HOMMIE/.jwmrc
does not exist"           if [[ -f /etc/skel/.jwmrc ]]          
then             cp /etc/skel/.jwmrc "$HOMMIE/.jwmrc"             [[ -n
"$postintME" ]] && chown "$postintME:$postintME"
"$HOMMIE/.jwmrc"           fi        fi


The odd thing is in your log file:

Using /home/jack as the HOME directory for jack
overwrote /etc/skel/.bashrc
copied jwmrc file to backup (~/.jwmrc.old)
It worked... see: <TaskListStyle list="" group="true"/><Mouse context="root" button="4">ldesktop</Mouse><Mouse context="root" button="5">rdesktop</Mouse><Mouse context="title" button="1">move</Mouse><Mouse context="title" button="2">move</Mouse><Mouse context="title" button="3">window</Mouse><Mouse context="title" button="4">shade</Mouse><Mouse context="title" button="5">shade</Mouse><Mouse context="title" button="11">maximize</Mouse><Mouse context="icon" button="1">window</Mouse><Mouse context="icon" button="2">move</Mouse><Mouse context="icon" button="3">window</Mouse><Mouse context="icon" button="4">shade</Mouse><Mouse context="icon" button="5">shade</Mouse><Mouse context="border" button="1">resize</Mouse><Mouse context="border" button="2">move</Mouse><Mouse context="border" button="3">window</Mouse><Mouse context="close" button="-1">close</Mouse><Mouse context="close" button="2">move</Mouse><Mouse context="close" button="-3">close</Mouse><Mouse context="maximize" button="-1">maximize</Mouse><Mouse context="maximize" button="-2">maxv</Mouse><Mouse context="maximize" button="-3">maxh</Mouse><Mouse context="minimize" button="-1">minimize</Mouse><Mouse context="minimize" button="2">move</Mouse><Mouse context="minimize" button="-3">shade</Mouse></JWM>

So... according to your log file the jwmrc for /home/jack has been changed.
But according to your jwmrc file it is NOT changed.
So... I am a bit stumped at the moment.
If you want just a quick fix:
cp /etc/skel/.jwmrc ~/
sudo chown $USER:$USER ~/.jwmrc

-- 
Regards


Follow ups

References