[gdm/display-configuration] Remove X Server location stuff cause ConsoleKit specified X command
- From: Halton Huo <haltonhuo src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gdm/display-configuration] Remove X Server location stuff cause ConsoleKit specified X command
- Date: Fri, 6 Nov 2009 13:00:05 +0000 (UTC)
commit f4bde22906aa4ed282e3fcec98a239bfc78ff8ce
Author: Halton Huo <halton huo sun com>
Date: Fri Nov 6 20:36:35 2009 +0800
Remove X Server location stuff cause ConsoleKit specified X command
in Exec of .display files
configure.ac | 99 ---------------------------------------------------
daemon/gdm-server.c | 8 +----
2 files changed, 1 insertions(+), 106 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a3512e7..eeeb199 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1044,105 +1044,6 @@ AC_SUBST(EXTRA_TEST_LIBS)
AC_SUBST(EXTRA_GREETER_LIBS)
dnl ---------------------------------------------------------------------------
-dnl - Check for X Server location
-dnl ---------------------------------------------------------------------------
-
-# First check with "! -h" for /usr/X11R6 and /usr/X11 since they often
-# symlink to each other, and configure should use the more stable
-# location (the real directory) if possible.
-#
-# On Solaris, the /usr/bin/Xserver script is used to decide whether to
-# use Xsun or Xorg, so this is used on Solaris.
-#
-# When testing for /usr/X11R6, first check with "! -h" for /usr/X11R6
-# and /usr/X11 since they often symlink to each other, and configure
-# should use the more stable location (the real directory) if possible.
-#
-if test -x /usr/X11/bin/Xserver; then
- X_PATH="/usr/X11/bin"
- X_SERVER_PATH="/usr/X11/bin"
- X_SERVER="/usr/X11/bin/Xserver"
- X_CONFIG_OPTIONS="-audit 0"
-elif test ! -h /usr/X11R6 -a -x /usr/X11R6/bin/X; then
- X_PATH="/usr/X11R6/bin"
- X_SERVER_PATH="/usr/X11R6/bin"
- X_SERVER="/usr/X11R6/bin/X"
- X_CONFIG_OPTIONS="-audit 0"
-elif test ! -h /usr/X11 -a -x /usr/X11/bin/X; then
- X_PATH="/usr/X11/bin"
- X_SERVER_PATH="/usr/X11/bin"
- X_SERVER="/usr/X11/bin/X"
- X_CONFIG_OPTIONS="-audit 0"
-elif test -x /usr/X11R6/bin/X; then
- X_PATH="/usr/X11R6/bin"
- X_SERVER_PATH="/usr/X11R6/bin"
- X_SERVER="/usr/X11R6/bin/X"
- X_CONFIG_OPTIONS="-audit 0"
-elif test -x /usr/bin/Xorg; then
- X_PATH="/usr/bin"
- X_SERVER_PATH="/usr/bin"
- X_SERVER="/usr/bin/Xorg"
- X_CONFIG_OPTIONS="-audit 0"
-elif test -x /usr/X11/bin/X; then
- X_PATH="/usr/X11/bin"
- X_SERVER_PATH="/usr/X11/bin"
- X_SERVER="/usr/X11/bin/X"
- 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"
- X_CONFIG_OPTIONS="-audit 0 -nobanner"
-elif test -x /opt/X11R6/bin/X; then
- X_PATH="/opt/X11R6/bin"
- X_SERVER_PATH="/opt/X11R6/bin"
- X_SERVER="/opt/X11R6/bin/X"
- X_CONFIG_OPTIONS="-audit 0"
-elif test -x /usr/bin/X; then
- X_PATH="/usr/bin"
- X_SERVER_PATH="/usr/bin"
- X_SERVER="/usr/bin/X"
- X_CONFIG_OPTIONS="-audit 0"
-else
- # what to do, what to do, this is wrong, but this just sets the
- # defaults, perhaps this user is cross compiling or some such
- X_PATH="/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin"
- X_SERVER_PATH="/usr/X11R6/bin"
- X_SERVER="/usr/X11R6/bin/X"
- X_CONFIG_OPTIONS="-audit 0"
-fi
-
-dnl ---------------------------------------------------------------------------
-dnl - Check for Xnest / Xephyr support
-dnl ---------------------------------------------------------------------------
-
-# Use Xephyr if it is available. It works better than Xnest since Xephyr
-# supports the Xserver extensions, even if on a remote machine.
-#
-X_XNEST_UNSCALED_FONTPATH="true"
-if test -x $X_SERVER_PATH/Xephyr; then
- X_XNEST_CMD="$X_SERVER_PATH/Xephyr"
- X_XNEST_CONFIG_OPTIONS="-audit 0"
-else
- if test -x /usr/openwin/bin/Xnest; then
- # If on Solaris, Xnest is only shipped with the Xsun Xserver, so
- # use this version.
- #
- X_XNEST_CMD="/usr/openwin/bin/Xnest"
- X_XNEST_CONFIG_OPTIONS="-audit 0 -name Xnest -pn"
- X_XNEST_UNSCALED_FONTPATH="false"
- else
- if test -x $X_SERVER_PATH/Xnest; then
- X_XNEST_CMD="$X_SERVER_PATH/Xnest"
- X_XNEST_CONFIG_OPTIONS="-audit 0 -name Xnest"
- fi
- fi
-fi
-
-dnl ---------------------------------------------------------------------------
dnl - Expand vars
dnl ---------------------------------------------------------------------------
diff --git a/daemon/gdm-server.c b/daemon/gdm-server.c
index 227c3f6..4268273 100644
--- a/daemon/gdm-server.c
+++ b/daemon/gdm-server.c
@@ -910,7 +910,7 @@ gdm_server_init (GdmServer *server)
server->priv = GDM_SERVER_GET_PRIVATE (server);
server->priv->pid = -1;
- server->priv->command = g_strdup (X_SERVER " -br -verbose");
+ server->priv->command = NULL;
server->priv->log_dir = g_strdup (LOGDIR);
add_ready_handler (server);
@@ -1032,12 +1032,6 @@ gdm_server_new (const char *display_id)
exit (1);
}
- /* If command is not set, set it X_SERVER */
- if (! server->priv->command || (strlen (server->priv->command) == 0)) {
- g_free (server->priv->command);
- server->priv->command = g_strdup (X_SERVER);
- }
-
error = NULL;
res = dbus_g_proxy_call (proxy,
"GetX11AuthorityFile",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]