source: trunk/debathena/debathena/xsession/debian/97debathena-homedir-mode @ 24439

Revision 24439, 601 bytes checked in by jhamrick, 14 years ago (diff)
In xsession: * Make sure debathena-xsession is installed before executing any of the scripts in /etc/X11/Xsession.d (Trac: #348)
RevLine 
[23063]1# This file is sourced by Xsession(5), not executed.
2
[24439]3if [ "$(dpkg-query -W -f '${Status}' debathena-xsession 2>/dev/null)" = "install ok installed" ] && \
4  [ afs = "$DEBATHENA_HOME_TYPE" ] && \
[23063]5  stat -L --format='%A' "$HOME" | egrep -q '^(.....w|........w)'; then
6  hm=$(stat -L --format='%a' "$HOME")
7  message "Your home directory is mode $hm, probably because it was created" \
8    "a long time ago.  You likely received a spurious error dialog about" \
9    ".dmrc as a result of the mode bits on your home directory.  To fix this" \
10    "condition, you can run: chmod 755 \$HOME"
11  unset hm
12fi
Note: See TracBrowser for help on using the repository browser.