On Tue, Feb 15, 2005 at 08:58:10AM +0100, [EMAIL PROTECTED] wrote:
> /etc/X11/Xsession does not define run_parts any more. It now uses
> run-parts --file directory directly.
> >From the manual, run-parts --file list all files, not only
> executables, so that seems ok.

Yep.

> I have attached my version of the xsession script. It change to
> run-parts --list and add a safety when executing
> $HOME/.xsession.d/ executable. This is mostly for those that
> don't like coffee and thus make a lot of dumb mistakes (as
> forgetting to set the shebang in my bash script) ...
> It find it great as it tells which is the broken script.
> NB: i made this a fatal error, errormsg instead of message, as
> without the || it would kill the server anyway. But it may be a
> better idea to log the error state and message, process all the
> scripts , show all the errors and ask if we should stop the
> server. I can make it if you think it is not overkill.

Maybe simple echo with &>2 is better and robust.  Xsession may change
function again.

> Maybe a similar safety could be added to sourcing , but i really
> do not see in which case this could fails (nfs home dir which loose
> connection between run-parts and sourcing ... or a solar magnetic
> storm of a microsecond who knows )

Yes.



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

Reply via email to