Skip site navigation (1)Skip section navigation (2)
Date:      13 Oct 2002 17:30:44 -0000
From:      Keith Jones <kmjones@blueyonder.co.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/44018: x11/gdm2: [PATCH] 'Shut down' doesn't shut down, just halts
Message-ID:  <20021013173044.4660.qmail@athlon.home>

next in thread | raw e-mail | index | archive | help

>Number:         44018
>Category:       ports
>Synopsis:       x11/gdm2: [PATCH] 'Shut down' doesn't shut down, just halts
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 13 10:40:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Keith Jones
>Release:        FreeBSD 4.7-RC i386
>Organization:
N/A
>Environment:
System: FreeBSD athlon.home 4.7-RC FreeBSD 4.7-RC #0: Wed Oct 2 00:15:56 BST 2002 root@athlon.home:/usr/src/sys/compile/ATHLON i386
>Description:
	The HaltCommand option in gdm.conf refers to the Linux command
	'poweroff', which doesn't exist in FreeBSD. When it can't find it,
	it executes 'shutdown -h now' instead. Therefore when you select
	'Shut down' in GDM, it doesn't power off the machine, but displays
	the 'Press any key to reboot' message.
>How-To-Repeat:
	Shut down the system from GDM.
>Fix:
	Remove the offending 'poweroff' entries from the HaltCommand option
	in gdm.conf, and change 'shutdown -h' to 'shutdown -p', as follows.

	Edit line 75 of config/gdm.conf.in to read:

	HaltCommand=/sbin/shutdown -p now;/usr/sbin/shutdown -p now

	or use the patch below (this replaces 'patch-ab' again).

	(Sorry for not spotting this before supplying the earlier patch!)

--- config/gdm.conf.in.orig	Fri Aug 23 18:53:53 2002
+++ config/gdm.conf.in	Sun Oct 13 17:57:14 2002
@@ -33,14 +33,14 @@
 # The gdm configuration program that is run from the login screen, you should
 # probably leave this alone
 Configurator=@EXPANDED_GDMCONFIGDIR@/gdmsetup --disable-sound --disable-crash-dialog
-GnomeDefaultSession=@EXPANDED_DATADIR@/gnome/default.session
+GnomeDefaultSession=@EXPANDED_DATADIR@/default.session
 # The chooser program.  Must output the chosen host on stdout, probably you
 # should leave this alone
 Chooser=@EXPANDED_BINDIR@/gdmchooser
 # Default path to set.  The profile scripts will likely override this
 DefaultPath=/bin:/usr/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin:@EXPANDED_BINDIR@
 # Default path for root.  The profile scripts will likely override this
-RootPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin:@EXPANDED_BINDIR@
+RootPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:@EXPANDED_BINDIR@
 DisplayInitDir=@EXPANDED_SYSCONFDIR@/gdm/Init
 # Greeter for local (non-xdmcp) logins.  Change gdmlogin to gdmgreeter to
 # get the new graphical greeter.
@@ -57,7 +57,7 @@
 # To try to kill all clients started at greeter time or in the Init script.
 # doesn't always work, only if those clients have a window of their own
 KillInitClients=true
-LogDir=@EXPANDED_AUTHDIR@
+LogDir=/var/log
 # You should probably never change this value unless you have a weird setup
 PidFile=/var/run/gdm.pid
 PostSessionScriptDir=@EXPANDED_SYSCONFDIR@/gdm/PostSession/
@@ -72,7 +72,7 @@
 # Reboot, Halt and suspend commands, you can add different commands
 # separated by a semicolon and gdm will use the first one it can find
 RebootCommand=/sbin/shutdown -r now;/usr/sbin/shutdown -r now
-HaltCommand=/usr/bin/poweroff;/sbin/poweroff;/sbin/shutdown -h now;/usr/sbin/shutdown -h now
+HaltCommand=/sbin/shutdown -p now;/usr/sbin/shutdown -p now
 SuspendCommand=
 # Probably should not touch the below this is the standard setup
 ServAuthDir=@EXPANDED_AUTHDIR@
@@ -84,16 +84,16 @@
 UserAuthFBDir=/tmp
 UserAuthFile=.Xauthority
 # The X server to use if we can't figure out what else to run.
-StandardXServer=/usr/X11R6/bin/X
+StandardXServer=@EXPANDED_BINDIR@/X
 # The maximum number of flexible X servers to run.
 FlexibleXServers=5
 # the X nest command
-Xnest=/usr/X11R6/bin/Xnest -name Xnest
+Xnest=@EXPANDED_BINDIR@/Xnest -name Xnest
 # Automatic VT allocation.  Right now only works on Linux.  This way
 # we force X to use specific vts.  turn VTAllocation to false if this
 # is causing problems.
 FirstVT=7
-VTAllocation=true
+VTAllocation=false
 
 [security]
 # If any distributions ship with this one off, they should be shot
@@ -153,7 +153,7 @@
 # The 'theme'.  By default we're using the default gtk theme
 # Of course assuming that gtk got installed in the same prefix,
 # if not change this.
-GtkRC=@EXPANDED_DATADIR@/themes/Default/gtk/gtkrc
+GtkRC=@EXPANDED_DATADIR@/../themes/Default/gtk-2.0/gtkrc
 # Maximum size of an icon, larger icons are scaled down
 MaxIconWidth=128
 MaxIconHeight=128
@@ -281,7 +281,7 @@
 # Definition of the standard X server.
 [server-Standard]
 name=Standard server
-command=/usr/X11R6/bin/X
+command=@EXPANDED_BINDIR@/X vt9
 flexible=true
 
 # To use this server type you should add -query host or -indirect host
@@ -289,7 +289,7 @@
 [server-Terminal]
 name=Terminal server
 # Add -terminate to make things behave more nicely
-command=/usr/X11R6/bin/X -terminate
+command=@EXPANDED_BINDIR@/X -terminate
 # Make this not appear in the flexible servers (we need extra params
 # anyway, and terminate would be bad for xdmcp)
 flexible=false
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021013173044.4660.qmail>