Osamu Aoki <os...@debian.org> 于2018年7月31日周二 下午11:55写道:
>
> 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: os...@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.

I'm using SDDM. Just read some sddm code and I found that sddm seems to
have made things work like this on purpose. Haven't read others' code (like gdm)
yet. Maybe it is a convention?

Sending mail copy to s...@packages.debian.org for help.

I doubt that we could ever push all DM upstream to use /bin/sh to call
/etc/X11/Xsession. Writing workaround at im-config side seems more reasonable.

Besides, is it possible to force some /etc/X11/Xsession.d/* scripts to
be called by
/bin/sh? The Xsession file calls all snippets with "." ("source"),
which made it almost
impossible to switch shell interpreter.

--
Regards,
Boyuan Yang


> > 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 via email to