On 2021-05-17 01:25:32 +0200, Gunnar Hjalmarsson wrote:
> As regards the main topic I don't think it's really an im-config specific
> issue. im-config is run as an Xsession script, and possibly your setup with
> fvwm and an xkbcomp call in ~/.xsession is a rather special combo where
> things happen in the wrong order.

I don't think that this is a special combo, at least when not used
a desktop environment like GNOME. You can see other users doing the
same thing:

  
https://superuser.com/questions/644521/linux-mint-mate-use-xkbcomp-to-load-a-keyboard-layout-on-startup
  
https://askubuntu.com/questions/437584/xkbcomp-command-at-startup-using-xinitrc

If the user has a .xsession file, that's what it is for.

> Fortunately you were able to figure out the sleep() workaround.

This was just for testing, but it is not an acceptable workaround,
slowing down the startup, without any guarantee under machine load.
It is up to im-config to do its own synchronization before going on;
that would be sufficient in my case, but...

I'm also wondering whether there could be clashes with other software
provided by Debian, for instance, possibly tigervnc-standalone-server,
which provides /etc/X11/Xtigervnc-session, running setxkbmap before
executing /etc/X11/Xsession.

Note also that the Xsession(5) man page even documents things that
could clash with im-config:

       Here is an example of how one might write a script, named
       40custom_load-xmodmap, to invoke xmodmap(1):

       SYSMODMAP="/etc/X11/Xmodmap"
       USRMODMAP="$HOME/.Xmodmap"

       if [ -x /usr/bin/X11/xmodmap ]; then
           if [ -f "$SYSMODMAP" ]; then
               xmodmap "$SYSMODMAP"
           fi
       fi

       if [ -x /usr/bin/X11/xmodmap ]; then
           if [ -f "$USRMODMAP" ]; then
               xmodmap "$USRMODMAP"
           fi
       fi

(xkbcomp is just the equivalent of xmodmap, with more possibilities
and not breaking some default features).

If the user needs to do something special, this must be documented
in this man page.

> Keeping the bug open for now to see if more users experience the same issue.

Unfortunately, I suspect that most users won't report issues.
Moreover, I suppose that users who have their own settings
normally don't use (and don't need) im-config. Here, it was
installed just via dependencies. So, breakage could occur at
any time when installing an application.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to