Home | History | Annotate | Download | only in ext-sources
      1 #!/bin/sh
      2 #
      3 # CDDL HEADER START
      4 #
      5 # The contents of this file are subject to the terms of the
      6 # Common Development and Distribution License, Version 1.0 only
      7 # (the "License").  You may not use this file except in compliance
      8 # with the License.
      9 #
     10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     11 # or http://www.opensolaris.org/os/licensing.
     12 # See the License for the specific language governing permissions
     13 # and limitations under the License.
     14 #
     15 # When distributing Covered Code, include this CDDL HEADER in each
     16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     17 # If applicable, add the following below this CDDL HEADER, with the
     18 # fields enclosed by brackets "[]" replaced with your own identifying
     19 # information: Portions Copyright [yyyy] [name of copyright owner]
     20 #
     21 # CDDL HEADER END
     22 #
     23 #
     24 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     25 # Use is subject to license terms.
     26 #
     27 
     28 DT_BINPATH=/usr/dt/bin
     29 XPATHS='
     30 /usr/X11/bin
     31 /usr/openwin/bin
     32 '
     33 
     34 for XPATH in $XPATHS
     35 do
     36   if [ -x $XPATH/xrdb ] ; then
     37     XRDB=$XPATH/xrdb
     38   fi
     39 done
     40 
     41 XRDB=${XRDB:-"xrdb"}
     42 
     43 if [ -x $DT_BINPATH/dtsession_res ] ; then
     44   $DT_BINPATH/dtsession_res -load -system
     45   $DT_BINPATH/dtsession_res -merge -tty
     46 fi
     47 
     48 case $DESKTOP_SESSION in
     49 gnome|GNOME|JDS|tgnome|TGNOME|tjds|TJDS|TrustedJDS)
     50   $XRDB -merge << EOF
     51   ! Default CDE resources
     52   *WindowColor:           #8A008A008A00
     53   !*WindowForeground:     #FF0000000000
     54   !*DataBackground:       #0000FF000000
     55   *DataForeground:        #FF0000000000
     56   *WorkspaceColor:        #8A008A008A00
     57   *Color.Background:      #FF000000FF00
     58   !*Color.Foreground:     #0000FF000000
     59   *foreground:            #000000000000
     60   ! Hack for Dtmail
     61   *XmText*background: seashell
     62   *XmTextField*background: seashell
     63   *Message_List*background: seashell
     64   *background:            #AE00B200C300
     65   Dthello*string:         Welcome to GNOME
     66 EOF
     67 ;;
     68 esac
     69 
     70 if [ -f $HOME/.Xdefaults ]; then
     71     $XRDB -merge $HOME/.Xdefaults    # Load Users X11 resource database
     72 fi
     73 
     74