[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#905129: im-config: Wrongly run shell scripts with user's shell interpreter, raises error with zsh



Hi,

On Tue, Jul 31, 2018 at 10:29:11PM +0800, Boyuan Yang wrote:
> Package: im-config
> Severity: important
> Version: 0.30-1
> X-Debbugs-CC: osamu@debian.org
> 
> Hi Osamu and debian-input-method team members,
> 
> TL;DR: file /etc/X11/Xsession.d/70im-config_launch is *not* called by /bin/sh,
> as written in shabang; it is called by user's shell interpreter
> instead, which may
> result in unexpected outcome when user's default shell is neither
> /bin/dash nor /bin/bash.

I am aware ... but This is actually problem on how X startup calls in
/etc/X11/Xsession.d/* are called by desktop environment.  It should use
/bin/sh ...

Which which DE do you use?

But this is annoying.  Maybe I should force dash as work around until
alll DE startup codes are fixed.

> 
> Solution
> =======
> 
> While the zsh-incompatible grammar can be fixed (perhaps with a thorough
> examination of all im-config source code), the problem that
> Xsession.d scripts are executed by user shell interpreter is a big problem
> and should receive further examination.

Yes.  Please file bug to DE otherwise you may be breaking other part of
X startup.

Osamu


Reply to: