#include <hallo.h>
* Drew Parsons [Fri, Sep 30 2005, 10:48:13AM]:
> On Thu, 2005-09-29 at 22:50 +0200, Eduard Bloch wrote:
> > Package: xprint-common
> > Version: 1:0.1.0.alpha1-12
> > Severity: grave
> > 
> > Hello,
> > 
> > the Xsession.d file tries run the init script but it cannot rely on its
> > existance since it is a conffile. I know of cases where the file was
> > _not_ executable which made Xsession fail because Overfiend insists on
> > using "set -e" there and your script is executed by the shell of
> > Xsession, not your own shebang interpreter.
> > 
> > Obvious workaround: add a "|| true" statement.
> > 
> 
> 
> You mean change
>       XPSERVERLIST="`/etc/init.d/xprint get_xpserverlist`"
> to
>       XPSERVERLIST="`/etc/init.d/xprint get_xpserverlist || true`"
> ?

Of course. Or foo=`bar` || true, or foo=`bar || :` or whatever.

> Easy enough to do of course, but since it would be preferable to
> actually run the script, wouldn't it be better to try
> 
>       XPSERVERLIST="`/bin/bash /etc/init.d/xprint get_xpserverlist`"
> 
> instead?

More robust, but not much more. If some error happens in the script the
Xsession is broken again (see other bug report).

Eduard.
-- 
Marcus Cole: That's a lot of ships!  That's a bloody awful lot of ships!
                                                 -- Quotes from Babylon 5 --


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to