[25485] in Source-Commits

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

/svn/athena r25016 - trunk/debathena/debathena/xsession/debian

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Thu Mar 10 18:30:27 2011

Date: Thu, 10 Mar 2011 18:30:20 -0500
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201103102330.p2ANUKxs008816@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: jdreed
Date: 2011-03-10 18:30:20 -0500 (Thu, 10 Mar 2011)
New Revision: 25016

Modified:
   trunk/debathena/debathena/xsession/debian/changelog
   trunk/debathena/debathena/xsession/debian/debathena-homedir-mode.sh
Log:
In xsession:
  * debathena-homedir-mode now offers to run the command for you (Trac
    #387)


Modified: trunk/debathena/debathena/xsession/debian/changelog
===================================================================
--- trunk/debathena/debathena/xsession/debian/changelog	2011-03-10 19:23:36 UTC (rev 25015)
+++ trunk/debathena/debathena/xsession/debian/changelog	2011-03-10 23:30:20 UTC (rev 25016)
@@ -1,3 +1,10 @@
+debathena-xsession (1.17.3) unstable; urgency=low
+
+  * debathena-homedir-mode now offers to run the command for you (Trac
+    #387)
+
+ -- Jonathan Reed <jdreed@mit.edu>  Thu, 10 Mar 2011 18:29:38 -0500
+
 debathena-xsession (1.17.2) unstable; urgency=low
 
   * Incoprorate new DEBATHENA_HOME_TYPE values into check-afs.sh and

Modified: trunk/debathena/debathena/xsession/debian/debathena-homedir-mode.sh
===================================================================
--- trunk/debathena/debathena/xsession/debian/debathena-homedir-mode.sh	2011-03-10 19:23:36 UTC (rev 25015)
+++ trunk/debathena/debathena/xsession/debian/debathena-homedir-mode.sh	2011-03-10 23:30:20 UTC (rev 25016)
@@ -3,9 +3,14 @@
 if [ afs = "$DEBATHENA_HOME_TYPE" ] && \
   stat -L --format='%A' "$HOME" | egrep -q '^(.....w|........w)'; then
   hm=$(stat -L --format='%a' "$HOME")
-  message "Your home directory is mode $hm, probably because it was created" \
-    "a long time ago.  You likely received a spurious error dialog about" \
-    ".dmrc as a result of the mode bits on your home directory.  To fix this" \
-    "condition, you can run: chmod 755 \$HOME"
+  if zenity --question --text="Your home directory is mode $hm, probably \
+because it was created a long time ago.  You likely received a spurious \
+error dialog about .dmrc as a result of the mode bits on your home \
+directory.  To fix this condition, you can run: 
+        chmod 755 \$HOME 
+
+Would you like to run this command now?"; then
+      chmod 755 $HOME
+  fi
   unset hm
 fi


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