On Tue, Feb 16, 2016 at 09:15:58AM +0100, Jan Stary wrote:
> There seems to be a difference between an X session
> initialized by startx(1) and one launched by xdm(1).
> 
> When I start an X session via startx, the settings
> specified in ~/.Xresources seem to be honoured.
> A session started via xdm(1) does _not_ honour
> 
>       XTerm*utf8:     true
>       XTerm*locale:   UTF-8
> 
> and every xterm I start in the running cwm(1)
> with ctrl+alt+del has XTERM_LOCALE=C
> 
> On the other hand, an xterm I start with `xterm`
> from an already running xterm has XTERM_LOCALE=cs_CZ.UTF-8
> For an xdm(1) session, this is exactly the difference in env(1)
> between a ctrl-alt-del started xterm and an `xterm`.
> 
> In a startx(1) session, the xterm started as ctrl-alt-del
> already has XTERM_LOCALE=cs_CZ.UTF-8 as per ~/.Xresources
> 
> Is this expected? Is it due to a difference between
> an xdm(1) session and a startx(1) session?
> 
>       Jan
> 
> 
> $ cat ~/.xinit:
> 
> #!/bin/sh
> 
> xset -b -c dpms 300 600 900 m 2 0 r rate 400 30 s blank s 120 60
> xsetroot -solid black
> xrdb ~/.Xresources

The above line calling xrdb makes your .Xresources file work.

startx reads ~/.xinit while xdm reads ~/.xsession.
Create a .xsession file which matches your .xinit (or use a symlink)
and xdm should pick .Xresources up, too.

> setxkbmap -layout "us,cz" -option "grp:shifts_toggle,grp_led:scroll"
> xmodmap ~/.xmodmaprc
> cwm

Reply via email to