1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtlogin|Xsession/config: setup some env variables and fontpath for linux (and CSRG) systems.

What we really need are more fonts installed, like all of the xf 75dpi
and 100dpi fonts.  100dpi looks much better than 75/72 dpi, especially
on any display larger than 1024x768.  Of course, in the far future, we
should use the anti-aliased TT fonts everyone else uses these days
anyway.
This commit is contained in:
Jon Trulson 2012-06-21 17:55:57 -06:00
parent 4b80191943
commit 191e1849a6
5 changed files with 48 additions and 2 deletions

View file

@ -68,7 +68,7 @@ Dtlogin*startup: Xstartup
Dtlogin*reset: Xreset Dtlogin*reset: Xreset
Dtlogin*setup: Xsetup Dtlogin*setup: Xsetup
#if defined (__hpux) || defined (_AIX) || defined (sun) || defined (__osf__) #if defined (__hpux) || defined (_AIX) || defined (sun) || defined (__osf__) || defined(CSRG_BASED) || defined(linux)
Dtlogin*failsafeClient: Xfailsafe Dtlogin*failsafeClient: Xfailsafe
#else #else
Dtlogin*failsafeClient: /usr/bin/X11/xterm Dtlogin*failsafeClient: /usr/bin/X11/xterm
@ -83,6 +83,9 @@ XCOMM Dtlogin.exportList: ODMDIR NLSPATH TZ ...
Dtlogin.exportList: ODMDIR NLSPATH TZ Dtlogin.exportList: ODMDIR NLSPATH TZ
#endif #endif
#if defined(CSRG_BASED) || defined(linux)
Dtlogin.exportList: NLSPATH LANG
#endif
XCOMM ######################################################################### XCOMM #########################################################################
XCOMM To specify the languages listed in the [Options] [Languages] menu. XCOMM To specify the languages listed in the [Options] [Languages] menu.
@ -132,6 +135,10 @@ XCOMM To specify a default user PATH environment variable.
XCOMM XCOMM
XCOMM Dtlogin*userPath: <path> XCOMM Dtlogin*userPath: <path>
#if defined(linux) || defined(CSRG_BASED)
Dtlogin*userPath: /bin:/usr/bin:/sbin:/usr/sbin:/usr/dt/bin
#endif
XCOMM ######################################################################### XCOMM #########################################################################
XCOMM To set a display to run the user's XDM $HOME/.xsession script as the XCOMM To set a display to run the user's XDM $HOME/.xsession script as the
@ -163,6 +170,11 @@ XCOMM To specify how long the Login Manager waits to connect to an X-server.
XCOMM XCOMM
XCOMM Dtlogin*openTimeout: <seconds> XCOMM Dtlogin*openTimeout: <seconds>
#if defined(CSRG_BASED) || defined(linux)
Dtlogin*openTimeout: 15
Dtlogin*serverAttempts: 3
Dtlogin*wakeupInterval: 20
#endif
XCOMM ######################################################################### XCOMM #########################################################################
XCOMM To specify how often the Login Manager "pings" a remote display to XCOMM To specify how often the Login Manager "pings" a remote display to

View file

@ -53,7 +53,11 @@ XCOMM
XCOMM XCOMM
XCOMM Set background to default weave. XCOMM Set background to default weave.
XCOMM XCOMM
$XDIR/xsetroot -default & #if defined(linux)
XDIR=/usr/bin
#endif
$XDIR/xsetroot -default &
#if defined(_AIX) && defined(AIXV4) #if defined(_AIX) && defined(AIXV4)
XCOMM XCOMM

View file

@ -111,6 +111,8 @@ XCOMM * Local local_uid@console root /usr/bin/X11/X :0 -nice -2
XCOMM * Local local@console /usr/bin/X11/X :0 XCOMM * Local local@console /usr/bin/X11/X :0
#elif defined (__uxp__) #elif defined (__uxp__)
:0 Local local@console /usr/bin/X11/X :0 :0 Local local@console /usr/bin/X11/X :0
#elif defined (linux)
:0 Local local_uid@tty1 root /usr/bin/X :0
#else #else
* Local local@console /usr/bin/X11/X :0 * Local local@console /usr/bin/X11/X :0
#endif #endif

View file

@ -56,6 +56,8 @@ fi
#ifdef sun #ifdef sun
XDIR=/usr/openwin/bin XDIR=/usr/openwin/bin
#elif defined(CSRG_BASED) || defined(linux)
XDIR=/usr/bin
#else #else
XDIR=/usr/bin/X11 XDIR=/usr/bin/X11
#endif #endif

View file

@ -36,6 +36,8 @@
pexec=$(LC_TIME=C ps -p $PPID | awk 'NR==2 {print $5}') pexec=$(LC_TIME=C ps -p $PPID | awk 'NR==2 {print $5}')
#elif defined(USL) && (OSMAJORVERSION > 1) #elif defined(USL) && (OSMAJORVERSION > 1)
pexec=$(LC_TIME=C ps -p $PPID | awk 'NR==2 {print $6}') pexec=$(LC_TIME=C ps -p $PPID | awk 'NR==2 {print $6}')
#elif defined(linux) || defined(CSRG_BASED)
pexec=$(LC_TIME=C /bin/ps -p $PPID 2>/dev/null | awk 'NR==2 {print $4}')
#else #else
pexec=$(LC_TIME=C /usr/bin/ps -p $PPID | awk 'NR==2 {print $4}') pexec=$(LC_TIME=C /usr/bin/ps -p $PPID | awk 'NR==2 {print $4}')
#endif #endif
@ -467,3 +469,27 @@ SetKeyboardMap()
fi fi
#endif #endif
#endif #endif
#if defined(CSRG_BASED) || defined(linux)
#ifdef cpp_Xsetup
if [ "$DTXSERVERLOCATION" != "remote" ]; then
fontpath=
FONTLIB=/usr/share/fonts/X11
for i in misc 75dpi 100dpi Speedo Type1 PJE
do
if [ -f $FONTLIB/$i/fonts.dir ]; then
if [ ! -z "$fontpath" ]; then
fontpath=$fontpath,$FONTLIB/$i/
else
fontpath=$FONTLIB/$i/
fi
fi
done
if [ ! -z "$fontpath" ]; then
$XDIR/xset fp+ $fontpath
fi
fi
#endif
#endif