summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2006-01-28 01:42:20 +0000
committerBrian Cameron <bcameron@src.gnome.org>2006-01-28 01:42:20 +0000
commit28f4c766024c8377f1523d296ea92e10a36d19e2 (patch)
tree586f275f6c6bc3abfc444397bf755e2e0c6cfb8e
parent4991d8ab7573cecba053dd6531327676ee1c3a09 (diff)
downloadgdm-28f4c766024c8377f1523d296ea92e10a36d19e2.tar.gz
Make sure /usr/openwin/bin is in the PATH on Solaris so that GDM's
2006-01-27 Brian Cameron <brian.cameron@sun.com> * configure.in: Make sure /usr/openwin/bin is in the PATH on Solaris so that GDM's PreSession/PostSession scripts can find sessreg and other needed X programs. Also this makes sure that users have xterm and other such programs in their PATH. Before we were only adding it if the Xserver was Xsun, but it is also needed if using the Xorg Xserver on Solaris.
-rw-r--r--ChangeLog9
-rw-r--r--configure.ac19
2 files changed, 22 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c638368..4e49f3cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2006-01-27 Brian Cameron <brian.cameron@sun.com>
+ * configure.in: Make sure /usr/openwin/bin is in the PATH on
+ Solaris so that GDM's PreSession/PostSession scripts can find
+ sessreg and other needed X programs. Also this makes sure
+ that users have xterm and other such programs in their PATH.
+ Before we were only adding it if the Xserver was Xsun, but
+ it is also needed if using the Xorg Xserver on Solaris.
+
+2006-01-27 Brian Cameron <brian.cameron@sun.com>
+
* daemon/gdm.h, daemon/gdmconfig.c, gui/gdmcommon.c: Add better
logic for grabbing the time for the user's locale if
Use24HourClock is set to auto. No longer depend on translaters
diff --git a/configure.ac b/configure.ac
index 61c50762..c20fa267 100644
--- a/configure.ac
+++ b/configure.ac
@@ -988,10 +988,12 @@ elif test -x /usr/X11/bin/X; then
GDM_USER_PATH="$GDM_USER_PATH:/usr/X11/bin"
X_CONFIG_OPTIONS="-audit 0"
elif test -x /usr/openwin/bin/Xsun; then
+ # Do not add /usr/openwin/bin here because on Solaris you need
+ # /usr/openwin/bin in your PATH even if you are using the Xorg
+ # Xserver. We add this to the path below.
X_PATH="/usr/openwin/bin"
X_SERVER_PATH="/usr/openwin/bin"
X_SERVER="/usr/openwin/bin/Xsun"
- GDM_USER_PATH="$GDM_USER_PATH:/usr/openwin/bin"
X_CONFIG_OPTIONS="-audit 0 -nobanner"
elif test -x /opt/X11R6/bin/X; then
X_PATH="/opt/X11R6/bin"
@@ -1015,23 +1017,24 @@ else
fi
# Don't add EXPANDED_BINDIR to GDM_USER_PATH if it is already in the PATH.
+# If it is /usr/bin, for example.
if test "x$EXPANDED_BINDIR" != "x/bin" -a "x$EXPANDED_BINDIR" != "x/usr/bin"; then
GDM_USER_PATH="$GDM_USER_PATH:$EXPANDED_BINDIR"
fi
-if test "x$USER_POST_PATH" != "x"; then
- GDM_USER_PATH="$GDM_USER_PATH:$USER_POST_PATH"
-fi
-
# On Solaris, Xnest is only shipped in /usr/openwin/, so set path
# properly. The Xsun version of Xnest also requires the -pn
# argument so it can be run as the user. Note that you can have
# both the X.org and Xsun Xservers on the same system (but X.org on
# Solaris doesn't ship with Xnest), so this makes Solaris work
-# properly when the X.org Xserver is included.
+# properly when the X.org Xserver is included. Also add needed
+# /usr/openwin/bin to PATH so that GDM's PreSession/PostSession
+# scripts can find sessreg and other programs it requires, and so
+# users have programs like xterm in their PATH.
#
case "$host" in
*solaris*)
+ GDM_USER_PATH="$GDM_USER_PATH:/usr/openwin/bin"
X_XNEST_PATH="/usr/openwin/bin"
X_XNEST_CONFIG_OPTIONS="-audit 0 -name Xnest -pn"
;;
@@ -1041,6 +1044,10 @@ case "$host" in
;;
esac
+if test "x$USER_POST_PATH" != "x"; then
+ GDM_USER_PATH="$GDM_USER_PATH:$USER_POST_PATH"
+fi
+
AC_SUBST(HALT_COMMAND)
AC_DEFINE_UNQUOTED(HALT_COMMAND,"$HALT_COMMAND")
AC_SUBST(REBOOT_COMMAND)