LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Icewm background program in .xinitrc causing X crash (https://www.linuxquestions.org/questions/linux-general-1/icewm-background-program-in-xinitrc-causing-x-crash-106662/)

qwijibow 10-21-2003 07:16 AM

Icewm background program in .xinitrc causing X crash
 
Hey Guys.
Well.... iceWM just plain kicks Ass dont it ??? epecially with iceCrack2 theme.


ANYWAY, from the documentaion, ive found that you have to
execute a program called icewmbg to display the background image.
which works Fine when issued from Xterm after bootup.

(oohhh, i should mention my default runlevel is runlevel 3.
and i have entered the command 'exec startx' in th last line of my
~/.bash_profile)

to load icewm i have the command
exec icewm
in my ~/.xinitrc file

but when i add 'exec icewmbg' to ~/.xinitrc
X will not load.
it starts to load, shows the nVidia Logo, then
at the point the WM would load, im left in runlevel 3
with the message "waiting for x to shutdown"

ive tried
exec icewm
exec icewmbg

exec icewmbg
exec icewm

exec icewm &
exec icewmbg &

exec icewmbg &
exec icewm &


but all have the same result.
so where exactly am i meant to issue the
icewmbg command ???

g00$e 10-21-2003 05:20 PM

exec icewmbg &
exec icewm

Should work.

Shade 10-21-2003 05:23 PM

That's interesting.

Try adding a sleep command between the execution of icewm and icewmbg.

sleep 5

-Shade

qwijibow 10-21-2003 07:06 PM

yeah, fixed it g00$e was right.

i was treating xinitrc as a config file not a script.

it seems X is designed to shutdown when the xinitrc script has finished executing.
so adding the thread '&' to all but the main WM at the end causes all binary's to execute,
and closes X when icewm finishes execution.

thanX ;)

Shade 10-21-2003 11:25 PM

Nice to know!

Thanks for posting the resolution, too many people don't.

-Shade


All times are GMT -5. The time now is 09:07 AM.