NetBSD Problem Report #39891

From michal.suchanek@ruk.cuni.cz  Mon Nov 10 12:44:10 2008
Return-Path: <michal.suchanek@ruk.cuni.cz>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id A855B63B898
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 10 Nov 2008 12:44:10 +0000 (UTC)
Message-Id: <20081110124409.E7CA163B123@mail.netbsd.org>
Date: Mon, 10 Nov 2008 13:43:46 +0100
From: hramrach@centrum.cz
Reply-To: hramrach@centrum.cz
To: gnats-bugs@gnats.NetBSD.org
Subject: xdm does not use shell startup scripts
X-Send-Pr-Version: 3.95

>Number:         39891
>Category:       misc
>Synopsis:       xdm does not use shell startup scripts
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 10 12:45:00 +0000 2008
>Closed-Date:    Sun Dec 19 01:43:05 +0000 2021
>Last-Modified:  Sun Dec 19 01:43:05 +0000 2021
>Originator:     hramrach
>Release:        NetBSD 4.99.73
>Organization:
	<organization of PR author (multiple lines)>
>Environment:
	<The following information is extracted from your kernel. Please>
	<append output of "ldd", "ident" where relevant (multiple lines).>
System: NetBSD 4.99.73 NetBSD 4.99.73 (miniMac) #3: Mon Nov 3 15:40:22 CET 2008 root@:/usr/src/sys/arch/i386/compile/miniMac i386
Architecture: i386
Machine: i386
>Description:
	I installed the xdm package from pkgsrc.
	I want my locale to be en_US.UTF-8 so that I can use texts that are written in my native language.
	Where do I set this up, system-wide?

	There is no option in xdm to select language.
	The X session does not read /etc/profile. My shells inside the terminal do but the terminal does not know about utf-8 because the terminal process itself is not started in any sane environment.
	There is no ENV script the X session scripts supplied use, certainly not one that would also be used for terminal logins.
>How-To-Repeat:
	log in through xdm
>Fix:
	Provide and document some way to set up environment for X and shell logins.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->misc-bug-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Tue, 11 Nov 2008 13:05:18 +0000
Responsible-Changed-Why:
Not a pkgsrc problem.
Request of document for system-wide locale settings on NetBSD.


From: Christopher Berardi <cberardi@natoufa.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/39891
Date: Fri, 26 Mar 2010 17:23:49 -0400

 I came across this problem as well. I followed the instructions in the NetBSD guide (chapter 9.10 Graphical login with xdm), and all seemed well, but when I started a xterm, my .shrc (sourced from $ENV) was not being read. So, none of my aliases, prompt, etc. was present.

 It turns out, I needed to reference /etc/profile in the Xsession file. Since I followed the instructions of the manual and created a symlink from .xinitrc to .xsession, I placed the following into my $HOME/.xinitrc:



 if [ -f /etc/profile ]; then
     . /etc/profile
 fi

 if [ -f $HOME/.profile ]; then
     . $HOME/.profile
 fi



 And now all is loaded as should be.

 -- 
 Christopher Berardi
 http://www.natoufa.com/

 Be still, and know that I am God (Psalms 46:10)

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/39891: xdm does not use shell startup scripts
Date: Thu, 18 Jun 2015 05:07:02 +0000

 On Mon, Nov 10, 2008 at 12:45:00PM +0000, michal.suchanek@ruk.cuni.cz wrote:
  > 	I installed the xdm package from pkgsrc.
  > 	I want my locale to be en_US.UTF-8 so that I can use texts
  >      that are written in my native language.
  > 	Where do I set this up, system-wide?

 You don't.

 This is a (fairly fundamental) problem with xdm -- I suggest you take
 it upstream, as even if we set up some hacks they wouldn't be
 standard.

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 19 Dec 2021 01:43:05 +0000
State-Changed-Why:
The proper (and at least semi-documented way) is to source your .profile in
your .xsession file, or put equivalent logic in it. Yes, this is not really
very good, but that's how xdm has always worked.

Rearchitecting xdm to do something different would be an upstream issue, and
probably not one likely to get much traction. (This is why the desktops always
replace xdm with their own thing.)


>Unformatted:
 	<Please check that the above is correct for the bug being reported,>
 	<and append source date of snapshot, if applicable (one line).>

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.