Tiny Core Base > TCB Bugs

TC 8.0 no wallpaper after boot (sometimes)

<< < (4/5) > >>

Misalf:
~/.xsession  is exec'ed by  startx . So every time the desktop starts.
I wonder if it's caused by the X server has not been started completely and if we can check if it has.
The sleep command always seems kind of a cheap compromise for me in those cases as it may bring in unnecessary delays or be too short depending on the hardware.

Rich:
Hi Misalf

--- Quote from: Misalf on March 11, 2018, 06:05:32 PM --- ... I wonder if it's caused by the X server has not been started completely and if we can check if it has. ...
--- End quote ---
I thought that's what the  waitforX  call in  .xsession  was for.

Misalf:
Well, I'm just speculating without knowledge about X.
And I don't know what  waitforX  actually does (can't find the source offhand and not sure I could even make sense of it). If it reports true if X is running it may still be too soon for  xsetroot  to be able to set the wallpaper while X hasn't completely initialized.
Just fumbling about in the dark.

Rich:
Hi Misalf
The source is available here:
http://distro.ibiblio.org/tinycorelinux/2.x/release/src/waitforX.c
Basically it tries to retrieve the current display. It will continue to try 50 times over the course of 10 seconds. If it succeeds, it
returns 0. If it fails, it returns 1.

Misalf:
Thanks for digging that out.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version