WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TCL 11 "windowmaker" not working !!! :(  (Read 9374 times)

Offline xor

  • Hero Member
  • *****
  • Posts: 1268
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #15 on: March 24, 2020, 11:18:04 AM »
Hi Juanito
I see 2 odd things here:

... it corrects when you type STARTX again! ...
The  pstree  command in the left terminal appears to show  wmaker  starting a second instance of  wmaker.

The  wbar  at the bottom of the screen appears to be overlaying a second set of icons, possibly supplied by  wmaker. Maybe he
shouldn't be loading  wbar.

tc@box:~$ pstree
init-+-Xorg
     |-sh
     |-udevd---2*[udevd]
     |-udhcpc
     |-wbar-+-aterm---sh---pstree
     |      `-aterm---sh
     `-wmaker---wmaker

tc@box:~$ startx
tc@box:~$ pstree
init-+-Xorg
     |-aterm---sh---pstree
     |-aterm---sh
     |-sh
     |-udevd---2*[udevd]
     |-udhcpc
     |-wbar
     `-wmaker---wmaker

tc@box:~$



tc@box:~$ startx

« Last Edit: March 27, 2023, 09:41:48 PM by Rich »

Offline xor

  • Hero Member
  • *****
  • Posts: 1268
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #16 on: April 04, 2020, 09:32:13 AM »


the current problem continues!
I created and run the iso file.
after the desktop comes
like the last pictures I sent
Typing "startx" fixes the desktop WBAR.!

but I'm tired of doing this manually every time I open it.


tc@box:~$ pstree
init-+-Xorg
     |-sh
     |-udevd---2*[udevd]
     |-udhcpc
     |-wbar-+-aterm---sh---pstree
     |      `-aterm---sh
     `-wmaker---wmaker

tc@box:~$ startx
tc@box:~$ pstree
init-+-Xorg
     |-aterm---sh---pstree
     |-aterm---sh
     |-sh
     |-udevd---2*[udevd]
     |-udhcpc
     |-wbar
     `-wmaker---wmaker

« Last Edit: August 15, 2021, 08:48:12 PM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #17 on: April 04, 2020, 09:40:56 AM »
Hi xor
When the system comes up, run these commands:
Code: [Select]
ps aux > before.txt
startx
ps aux > after.txt

Then attach the files  before.txt  and  after.txt  to your next post.

Offline xor

  • Hero Member
  • *****
  • Posts: 1268
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #18 on: April 04, 2020, 10:58:31 AM »
Hi xor
When the system comes up, run these commands:
Code: [Select]
ps aux > before.txt
startx
ps aux > after.txt

Then attach the files  before.txt  and  after.txt  to your next post.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #19 on: April 04, 2020, 11:31:10 AM »
Hi xor
Are you starting  wbar  in  /opt/bootlocal.sh, /opt/bootsync.sh, or some other script?

Offline xor

  • Hero Member
  • *****
  • Posts: 1268
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #20 on: April 04, 2020, 11:56:12 AM »
Hi xor
Are you starting  wbar  in  /opt/bootlocal.sh, /opt/bootsync.sh, or some other script?

no

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #21 on: April 04, 2020, 11:59:36 AM »
Hi xor
When the system comes up, run these command:
Code: [Select]
sudo killall wbar
Does the background then get fixed?

Offline xor

  • Hero Member
  • *****
  • Posts: 1268
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #22 on: April 04, 2020, 12:37:46 PM »
Hi xor
When the system comes up, run these command:
Code: [Select]
sudo killall wbar
Does the background then get fixed?
I tried the command! WBAR is gone! :(
I don't want Wbar to go!

Re-type the startx command
it turns out this way
i like this shape!



but when it usually opens, I see this as follows
once in a while ! I do not want to write startx command at continuous boot

« Last Edit: March 27, 2023, 09:43:14 PM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #23 on: April 04, 2020, 08:43:42 PM »
Hi xor
When the system comes up, run these command:
Code: [Select]
sudo killall wbar
Does the background then get fixed?
I thought my request was reasonable. Run a command, and tell me if it fixes the background.

I tried the command! WBAR is gone! :(
I don't want Wbar to go! ...
Instead of answering my question, you start yelling that the WBAR is gone.
I told you to kill the Wbar to see if it's blocking something else from happening.
Do you really believe I'm trying to deprive you of your Wbar?

Maybe you could try answering the question I ask.

Then attach the following files to your next post:

Code: [Select]
/op/bootsync.sh
/op/bootlocal.sh
~/.profile
~/.xsession

Offline xor

  • Hero Member
  • *****
  • Posts: 1268
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #24 on: April 05, 2020, 03:07:48 AM »
.profile
Code: [Select]
# ~/.profile: Executed by Bourne-compatible login SHells.
#
# Path to personal scripts and executables (~/.local/bin).
[ -d "$HOME/.local/bin" ] || mkdir -p "$HOME/.local/bin"
export PATH=$HOME/.local/bin:$PATH

ONDEMAND=/etc/sysconfig/tcedir/ondemand
[ -d "$ONDEMAND" ] && export PATH=$PATH:"$ONDEMAND"

# Environment variables and prompt for Ash SHell
# or Bash. Default is a classic prompt.
#
PS1='\u@\h:\w\$ '
PAGER='less -EM'
MANPAGER='less -isR'

EDITOR=vi

export PS1 PAGER FILEMGR EDITOR MANPAGER

export BACKUP=1
[ "`id -un`" = "`cat /etc/sysconfig/tcuser`" ] && echo "$BACKUP" | sudo tee /etc/sysconfig/backup >/dev/null 2>&1
export FLWM_TITLEBAR_COLOR="58:7D:AA"

if [ -f "$HOME/.ashrc" ]; then
   export ENV="$HOME/.ashrc"
   . "$HOME/.ashrc"
fi

TERMTYPE=`/usr/bin/tty`
[ ${TERMTYPE:5:3} == "tty" ] && (
[ ! -f /etc/sysconfig/Xserver ] ||
[ -f /etc/sysconfig/text ] ||
[ -e /tmp/.X11-unix/X0 ] ||
startx
)

.xsession
Code: [Select]
/usr/local/bin/Xorg -nolisten tcp &
export XPID=$!
waitforX || ! echo failed in waitforX || exit
"$DESKTOP" 2>/tmp/wm_errors &
export WM_PID=$!
[ -x $HOME/.setbackground ] && $HOME/.setbackground
[ -x $HOME/.mouse_config ] && $HOME/.mouse_config &
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
[ -d "/usr/local/etc/X.d" ] && find "/usr/local/etc/X.d" -type f -o -type l | while read F; do . "$F"; done
[ -d "$HOME/.X.d" ] && find "$HOME/.X.d" -type f | while read F; do . "$F"; done

bootsync.sh
Code: [Select]
#!/bin/sh
# put other system startup commands here, the boot process will wait until they complete.
# Use bootlocal.sh for system startup commands that can run in the background
# and therefore not slow down the boot process.
/usr/bin/sethostname box
/opt/bootlocal.sh &

bootlocal.sh
Code: [Select]
#!/bin/sh
# put other system startup commands here



Hi xor
When the system comes up, run these command:
Code: [Select]
sudo killall wbar
Does the background then get fixed?
I thought my request was reasonable. Run a command, and tell me if it fixes the background.

I tried the command! WBAR is gone! :(
I don't want Wbar to go! ...
Instead of answering my question, you start yelling that the WBAR is gone.
I told you to kill the Wbar to see if it's blocking something else from happening.
Do you really believe I'm trying to deprive you of your Wbar?

Maybe you could try answering the question I ask.

Then attach the following files to your next post:

Code: [Select]
/op/bootsync.sh
/op/bootlocal.sh
~/.profile
~/.xsession
« Last Edit: April 05, 2020, 03:13:43 AM by xor »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #25 on: April 05, 2020, 09:22:39 AM »
Hi xor
See if this helps.

Change your  .xsession  file

From this:
Code: [Select]
/usr/local/bin/Xorg -nolisten tcp &
export XPID=$!
waitforX || ! echo failed in waitforX || exit
"$DESKTOP" 2>/tmp/wm_errors &
export WM_PID=$!
[ -x $HOME/.setbackground ] && $HOME/.setbackground
[ -x $HOME/.mouse_config ] && $HOME/.mouse_config &
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
[ -d "/usr/local/etc/X.d" ] && find "/usr/local/etc/X.d" -type f -o -type l | while read F; do . "$F"; done
[ -d "$HOME/.X.d" ] && find "$HOME/.X.d" -type f | while read F; do . "$F"; done

To this:
Code: [Select]
/usr/local/bin/Xorg -nolisten tcp &
export XPID=$!
waitforX || ! echo failed in waitforX || exit
"$DESKTOP" 2>/tmp/wm_errors &

while true
do
sleep 1
busybox ps | grep -q "wmaker \--for-real" || continue
sleep 1
break
done

export WM_PID=$!
[ -x $HOME/.setbackground ] && $HOME/.setbackground
[ -x $HOME/.mouse_config ] && $HOME/.mouse_config &
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
[ -d "/usr/local/etc/X.d" ] && find "/usr/local/etc/X.d" -type f -o -type l | while read F; do . "$F"; done
[ -d "$HOME/.X.d" ] && find "$HOME/.X.d" -type f | while read F; do . "$F"; done

Offline xor

  • Hero Member
  • *****
  • Posts: 1268
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #26 on: April 06, 2020, 03:06:58 AM »
 :)

1. as;

First of all, I am trying to configure TCL on usb as a linux distribution running on iso.

I use ezremaster.

.xsession file
ezremaster.iso> boot> core.gz> core> home> tc> .xsession

I placed it!

wbar now works seamlessly with wmaker :)

If you add the patch you recommend to wbar.tcz, you will ensure that wmaker users do not have any problems while using wbar.

Thank you for your help

Hi xor
See if this helps.

Change your  .xsession  file

From this:
Code: [Select]
/usr/local/bin/Xorg -nolisten tcp &
export XPID=$!
waitforX || ! echo failed in waitforX || exit
"$DESKTOP" 2>/tmp/wm_errors &
export WM_PID=$!
[ -x $HOME/.setbackground ] && $HOME/.setbackground
[ -x $HOME/.mouse_config ] && $HOME/.mouse_config &
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
[ -d "/usr/local/etc/X.d" ] && find "/usr/local/etc/X.d" -type f -o -type l | while read F; do . "$F"; done
[ -d "$HOME/.X.d" ] && find "$HOME/.X.d" -type f | while read F; do . "$F"; done

To this:
Code: [Select]
/usr/local/bin/Xorg -nolisten tcp &
export XPID=$!
waitforX || ! echo failed in waitforX || exit
"$DESKTOP" 2>/tmp/wm_errors &

while true
do
sleep 1
busybox ps | grep -q "wmaker \--for-real" || continue
sleep 1
break
done

export WM_PID=$!
[ -x $HOME/.setbackground ] && $HOME/.setbackground
[ -x $HOME/.mouse_config ] && $HOME/.mouse_config &
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
[ -d "/usr/local/etc/X.d" ] && find "/usr/local/etc/X.d" -type f -o -type l | while read F; do . "$F"; done
[ -d "$HOME/.X.d" ] && find "$HOME/.X.d" -type f | while read F; do . "$F"; done

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #27 on: April 06, 2020, 08:58:26 AM »
Hi xor
... If you add the patch you recommend to wbar.tcz, you will ensure that wmaker users do not have any problems while using wbar. ...
The purpose of this change was to delay running  .setbackground  and  ${ICONS}.sh (Wbar)  until after  wmaker  has started running.
The background of the screen was not getting painted blue which suggests  .setbackground  was also being affected.
If this patch gets placed in  wbar.tcz , you would probably still have a problem with  .setbackground.
If this patch gets placed in  wbar.tcz , it will break  wbar.tcz  for all the other window managers.

Offline xor

  • Hero Member
  • *****
  • Posts: 1268
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #28 on: April 06, 2020, 09:43:24 AM »
Hi xor
... If you add the patch you recommend to wbar.tcz, you will ensure that wmaker users do not have any problems while using wbar. ...
The purpose of this change was to delay running  .setbackground  and  ${ICONS}.sh (Wbar)  until after  wmaker  has started running.
The background of the screen was not getting painted blue which suggests  .setbackground  was also being affected.
If this patch gets placed in  wbar.tcz , you would probably still have a problem with  .setbackground.
If this patch gets placed in  wbar.tcz , it will break  wbar.tcz  for all the other window managers.

As the 2nd option; Would it be if the patch file was added in "windowmaker.tcz"?
Or does it make sense to create my 3rd option "yama_wbar_for_wmaker.tcz" file?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: TCL 11 "windowmaker" not working !!! :(
« Reply #29 on: April 06, 2020, 10:30:10 AM »
Hi xor
It belongs right where it is to  pause  the  .xsessions  file execution until after  wmaker  has started running.