dtstart revision 12508
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Script for starting a desktop session
112cd14a18db3bd3fac4ff92c4117b51ddd339abqz# CDDL HEADER START
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# The contents of this file are subject to the terms of the
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Common Development and Distribution License, Version 1.0 only
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# (the "License"). You may not use this file except in compliance
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# with the License.
92f381329ebf1c2209df9608670666b32b291e05artem# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
00687e57f8c568d4f8fb446b6530a2942842292fartem# See the License for the specific language governing permissions
00687e57f8c568d4f8fb446b6530a2942842292fartem# and limitations under the License.
00687e57f8c568d4f8fb446b6530a2942842292fartem# When distributing Covered Code, include this CDDL HEADER in each
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# If applicable, add the following below this CDDL HEADER, with the
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# fields enclosed by brackets "[]" replaced with your own identifying
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# information: Portions Copyright [yyyy] [name of copyright owner]
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# CDDL HEADER END
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Use is subject to license terms.
18c2aff776a775d34a4c9893a4c72e0434d68e36artem echo " session_name is the suffix of an Xinitrc script in"
18c2aff776a775d34a4c9893a4c72e0434d68e36artem echo " $DT_SITE_CONFIG_DIR (local configuration location) or"
d2ec54f7875f7e05edd56195adbeb593c947763fphitran echo " $DT_SYS_CONFIG_DIR (system default location)."
d2ec54f7875f7e05edd56195adbeb593c947763fphitranif [ -x "${DT_SITE_CONFIG_DIR}/Xinitrc.${SESSION_NAME}" ]; then
d2ec54f7875f7e05edd56195adbeb593c947763fphitran XINITRC="${DT_SITE_CONFIG_DIR}/Xinitrc.${SESSION_NAME}"
d2ec54f7875f7e05edd56195adbeb593c947763fphitranelif [ -x "${DT_SYS_CONFIG_DIR}/Xinitrc.${SESSION_NAME}" ]; then
d2ec54f7875f7e05edd56195adbeb593c947763fphitran XINITRC="${DT_SYS_CONFIG_DIR}/Xinitrc.${SESSION_NAME}"
18c2aff776a775d34a4c9893a4c72e0434d68e36artem echo "$MYNAME: Xinitrc.${SESSION_NAME} not found in ${DT_SITE_CONFIG_DIR} or ${DT_SYS_CONFIG_DIR}" 1>&2
18c2aff776a775d34a4c9893a4c72e0434d68e36artem#Startup Input methods (IIIM->XIM)
18c2aff776a775d34a4c9893a4c72e0434d68e36artem# Use ssh-agent if available.
18c2aff776a775d34a4c9893a4c72e0434d68e36artemif [ -x "/usr/bin/ssh-agent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
18c2aff776a775d34a4c9893a4c72e0434d68e36artem echo "$0: ssh-agent not found."