how to add kdeinit to xinitrc

Zaphod Beeblebrox zappi at herz--aus--gold.de
Sun Apr 25 14:26:03 CEST 2004


Hi,
I have another little script idea for starting kdeinit in .xinitrc
It's not tested, I do have not kde on my machine, so I tested it with
xeyes. *g*
Here are the lines, you can write it in the .xinitrc or you can use a
single script, and ad the the name of the script, with the full path to
.xinitrc.
----------
#!/bin/sh
i=0  
while test $[  `/sbin/pidof -s xfce4-panel` ] -eq "0" ; do sleep 1 ;
i=$(( i + 1 )); done
while true; do kdeinit ; done
----------
I hope it works, and it's usefull.
The script don't start kdeinit before xfce4-panel is started.
If you find bugs, remember I'm a totally newbie in scripting, this here,
is the result of one hour googling, and brainstorming, and testing.

Greetings Michael
 
> 040425 xfce-bugs at xfce.org wrote:
> > The following bug has been CLOSED
> > Bug ID:                     0000180
> > Summary:                    adding kdeinit to xinitrc spoils panel
> > -----------------------------------------------------------------------
> >  huysmans - 2004-04-25 09:17 GMT 
> > -----------------------------------------------------------------------
> > I'm sorry, but there's nothing we can do about this.
> 
> then you go ahead & do it (grin)!
> 
> > Adding this to your .xinitrc may work:
> >   ( sleep 10 ; kdeinit ) &
> > That should start kdeinit after the panel has started
> > unless that takes more than 10 seconds.
> 
> yes indeed, that works!  'sleep' is not mentioned in 'man bash'.
> 
> surely, this is a common problem many users would like to solve.
>  2  others have offered solutions, but got the details wrong.
> perhaps such a line sb added to the default  .xinitrc ,
> commented out with a note to explain its function ?



More information about the Xfce mailing list