[23540] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r23182 - in trunk/debathena/debathena/dotfiles: . debian

daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Fri Sep 19 18:01:46 2008

Date: Fri, 19 Sep 2008 18:00:50 -0400 (EDT)
From: ghudson@MIT.EDU
Message-Id: <200809192200.SAA04430@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: ghudson
Date: 2008-09-19 18:00:49 -0400 (Fri, 19 Sep 2008)
New Revision: 23182

Modified:
   trunk/debathena/debathena/dotfiles/bashrc
   trunk/debathena/debathena/dotfiles/cshrc
   trunk/debathena/debathena/dotfiles/debian/changelog
Log:
In dotfiles:
  * Use gnome-session-save for logout.


Modified: trunk/debathena/debathena/dotfiles/bashrc
===================================================================
--- trunk/debathena/debathena/dotfiles/bashrc	2008-09-19 21:32:54 UTC (rev 23181)
+++ trunk/debathena/debathena/dotfiles/bashrc	2008-09-19 22:00:49 UTC (rev 23182)
@@ -115,11 +115,7 @@
 xresize () { set -f; eval "$( resize -u )"; set +f ; }
 
 if [ "${XSESSION+set}" = set ]; then
-	if [ -z "$XSESSION" ]; then
-		logout () { end_session && exit; }		# logout for X
-	else
-		logout () { kill -HUP $XSESSION && exit; }	# logout for X
-	fi
+	logout () { gnome-session-save --kill --silent; exit; } # logout for X
 fi
 
 #   aliases dealing with adding locker programs

Modified: trunk/debathena/debathena/dotfiles/cshrc
===================================================================
--- trunk/debathena/debathena/dotfiles/cshrc	2008-09-19 21:32:54 UTC (rev 23181)
+++ trunk/debathena/debathena/dotfiles/cshrc	2008-09-19 22:00:49 UTC (rev 23182)
@@ -153,11 +153,7 @@
 alias xresize 'set noglob; eval `resize -c` || unset noglob'
 
 if ($?XSESSION) then
-  if ("$XSESSION" == "") then
-    alias logout	'exit && end_session'		# logout for X
-  else
-    alias logout	'exit && kill -HUP $XSESSION'	# logout for X
-  endif
+  alias logout	'exit && gnome-session-save --kill --silent'	# logout for X
 endif
 
 #   aliases dealing with subjects

Modified: trunk/debathena/debathena/dotfiles/debian/changelog
===================================================================
--- trunk/debathena/debathena/dotfiles/debian/changelog	2008-09-19 21:32:54 UTC (rev 23181)
+++ trunk/debathena/debathena/dotfiles/debian/changelog	2008-09-19 22:00:49 UTC (rev 23182)
@@ -1,3 +1,9 @@
+debathena-dotfiles (10.0.7-0debathena3) unstable; urgency=low
+
+  * Use gnome-session-save for logout.
+
+ -- Greg Hudson <ghudson@mit.edu>  Fri, 19 Sep 2008 17:59:57 -0400
+
 debathena-dotfiles (10.0.7-0debathena2) unstable; urgency=low
 
   * Fix the handling of .path files in cshrc.


home help back first fref pref prev next nref lref last post