in message <20030710030401.GA20245_at_unixcab.org>,
wrote Mikhael Goikhman thusly...
>
> On 09 Jul 2003 22:40:58 -0400, parv wrote:
> >
> > In ~/.xinitrc, try sleeping for a while before starting aterm...
> >
> > xv -quit -root <image> && sleep 2
> > aterm
>
> The idea is ok, but the example lines are incorrect. As it is
> written (running xv in foreground) it wastes 2 sec for nothing.
Why, sleep only if xv succeeds before starting aterm?
I gathered from OP that aterm was starting before xv could do its
thing. So there should be some reasonable wait before aterm starts.
(See below before replying to this point.)
> This would be more correct:
>
> (xv -quit -root <image> && aterm) &
If for some reason, xv fails there would be /no/ aterm. This would
be the least "correct" thing to do.
> xv -quit -root <image> &
> (sleep 3 && aterm) &
I like this much better than the above two versions for above
mentioned reasons.
Going off topic now...
I would change the last line to either of...
sleep 3 && aterm &
{ sleep 3; aterm; } &
...Why start a sub shell, unless it is a shell specific workaround?
- Parv
--
A programmer, budding Unix system administrator, and amateur photographer
seeks employment: http://www103.pair.com/parv/work/
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu Jul 10 2003 - 16:16:18 BST