Subject: misc/36477: reasonable defaults for /etc/skel/.xsession
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <cheusov@tut.by>
List: netbsd-bugs
Date: 06/12/2007 19:20:01
>Number:         36477
>Category:       misc
>Synopsis:       reasonable default for /etc/skel/.xsession
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 12 19:20:01 +0000 2007
>Originator:     cheusov@tut.by
>Release:        NetBSD 4.0_BETA2
>Organization:
Best regards, Aleksey Cheusov.
>Environment:
System: NetBSD chen.chizhovka.net 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC) #18: Sat Jun 9 22:13:59 EEST 2007 cheusov@chen.chizhovka.net:/srv/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

x11/xpkgwedge package suggests the following:

       * You MUST set the environment variable XAPPLRESDIR in
       /etc/profile and /etc/csh.login by hand in order to make pkgs
       built with xpkgwedge run properly, e.g.

          XAPPLRESDIR=/usr/pkg/lib/X11/app-defaults
          export XAPPLRESDIR

At the same time /etc/profile is not loaded
in case of login through xdm/gdm/kdm/...

I suggest the following default content for /etc/skel/.xsession
     #!/bin/sh

     ############################################
     # to load /etc/profile

     /bin/ksh -l -i ~/.xinitrc
>Fix: