[gdm/display-configuration] Add new argument --with-script-path to allow specify a different PATH
- From: Halton Huo <haltonhuo src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gdm/display-configuration] Add new argument --with-script-path to allow specify a different PATH
- Date: Thu, 21 Jan 2010 04:08:20 +0000 (UTC)
commit fef3206e9565ebc1bb46a0639719d1ba49448521
Author: Halton Huo <halton huo sun com>
Date: Thu Jan 21 12:03:02 2010 +0800
Add new argument --with-script-path to allow specify a different PATH
in data/Init, data/PreSession and data/PostSession.
If not given, use /usr/bin by default.
configure.ac | 35 +++++++++++++++++++----------------
data/Init.in | 2 +-
data/Makefile.am | 11 -----------
data/PostSession.in | 1 +
data/PreSession.in | 2 +-
5 files changed, 22 insertions(+), 29 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index eeeb199..fa47267 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1190,6 +1190,21 @@ else
XSESSION_SHELL=/bin/sh
fi
+dnl ---------------------------------------------------------------------------
+dnl - Directory for X11 programs
+dnl ---------------------------------------------------------------------------
+AC_ARG_WITH(x11-path,
+ AS_HELP_STRING([--with-x11-path=<dir>],
+ [x11 path]))
+
+if ! test -z "$with_script_path"; then
+ SCRIPT_PATH=$with_script_path
+else
+ SCRIPT_PATH=/usr/bin
+fi
+
+AC_SUBST(SCRIPT_PATH)
+
# Set configuration choices.
#
AC_SUBST(XSESSION_SHELL)
@@ -1197,21 +1212,6 @@ AC_DEFINE_UNQUOTED(XSESSION_SHELL,"$XSESSION_SHELL",[xsession shell])
AC_SUBST(SOUND_PROGRAM)
AC_DEFINE_UNQUOTED(SOUND_PROGRAM,"$SOUND_PROGRAM",[])
-AC_SUBST(X_PATH)
-AC_SUBST(X_SERVER)
-AC_SUBST(X_SERVER_PATH)
-AC_SUBST(X_CONFIG_OPTIONS)
-AC_DEFINE_UNQUOTED(X_SERVER,"$X_SERVER",[])
-AC_DEFINE_UNQUOTED(X_SERVER_PATH,"$X_SERVER_PATH",[])
-AC_DEFINE_UNQUOTED(X_CONFIG_OPTIONS,"$X_CONFIG_OPTIONS", [Options used when launching xserver])
-
-AC_SUBST(X_XNEST_CMD)
-AC_SUBST(X_XNEST_CONFIG_OPTIONS)
-AC_SUBST(X_XNEST_UNSCALED_FONTPATH)
-AC_DEFINE_UNQUOTED(X_XNEST_CMD,"$X_XNEST_CMD",[])
-AC_DEFINE_UNQUOTED(X_XNEST_CONFIG_OPTIONS,"$X_XNEST_CONFIG_OPTIONS",[])
-AC_DEFINE_UNQUOTED(X_XNEST_UNSCALED_FONTPATH,"$X_XNEST_UNSCALED_FONTPATH",[])
-
## Stuff for debian/changelog.in
#if test -e "debian/changelog"; then
# DEBIAN_DATESTAMP=`head -1 debian/changelog| sed -e 's/.*cvs.//' -e 's/).*//'`
@@ -1236,6 +1236,9 @@ gui/user-switch-applet/Makefile
utils/Makefile
data/gdm.conf
data/Makefile
+data/Init
+data/PostSession
+data/PreSession
data/faces/Makefile
data/greeter-autostart/Makefile
data/pixmaps/Makefile
@@ -1278,7 +1281,7 @@ echo "
dbus-1 system.d dir: ${DBUS_SYS_DIR}
PAM prefix: ${PAM_PREFIX}
- X server: ${X_SERVER}
+ script path: ${SCRIPT_PATH}
"
dnl TCP Wrappers support?
diff --git a/data/Init.in b/data/Init.in
index 091f535..cf90be3 100644
--- a/data/Init.in
+++ b/data/Init.in
@@ -3,7 +3,7 @@
# Plus a lot of fun stuff added
# -George
-PATH= X_PATH@:$PATH
+PATH="@SCRIPT_PATH"
OLD_IFS=$IFS
gdmwhich () {
diff --git a/data/Makefile.am b/data/Makefile.am
index a317fdd..bc33e9c 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -19,17 +19,6 @@ Xsession: $(srcdir)/Xsession.in
-e 's,[ ]libexecdir[@],$(libexecdir),g' \
<$(srcdir)/Xsession.in >Xsession
-Init: $(srcdir)/Init.in
- sed -e 's,[ ]X_PATH[@],$(X_PATH),g' \
- <$(srcdir)/Init.in >Init
-
-PreSession: $(srcdir)/PreSession.in
- sed -e 's,[ ]X_PATH[@],$(X_PATH),g' \
- <$(srcdir)/PreSession.in >PreSession
-PostSession: $(srcdir)/PostSession.in
- sed -e 's,[ ]X_PATH[@],$(X_PATH),g' \
- <$(srcdir)/PostSession.in >PostSession
-
gdm.conf-custom: $(srcdir)/gdm.conf-custom.in
sed -e 's,[ ]GDM_DEFAULTS_CONF[@],$(GDM_DEFAULTS_CONF),g' \
<$(srcdir)/gdm.conf-custom.in >gdm.conf-custom
diff --git a/data/PostSession.in b/data/PostSession.in
index c52d3c2..54276fd 100755
--- a/data/PostSession.in
+++ b/data/PostSession.in
@@ -1,3 +1,4 @@
#!/bin/sh
+PATH="@SCRIPT_PATH@"
exit 0
diff --git a/data/PreSession.in b/data/PreSession.in
index 6f31d3d..09ad05b 100755
--- a/data/PreSession.in
+++ b/data/PreSession.in
@@ -6,4 +6,4 @@
#
# Note that output goes into the .xsession-errors file for easy debugging
#
-PATH="@X_PATH@:$PATH:/bin:/usr/bin"
+PATH="@SCRIPT_PATH@"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]