source: trunk/debathena/debathena/xsession/debian/05debathena-nocalls @ 24439

Revision 24439, 718 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)
Line 
1if [ "$(dpkg-query -W -f '${Status}' debathena-xsession 2>/dev/null)" != "install ok installed" ]; then
2   return 0
3fi
4
5if [ "$GDMSESSION" = "000debathena-nocalls" ]; then
6    export NOCALLS=1
7    message "You have chosen to log in without your customizations." \
8        "Your dotfiles will be ignored in favor of the system" \
9        "default settings.  You can use this session to fix any" \
10        "problems with your dotfiles."
11fi
12
13# You don't actually want nocalls as your default session
14[ -e "$HOME/.dmrc" ] && \
15  grep -q 000debathena-nocalls "$HOME/.dmrc" && \
16  rm "$HOME/.dmrc"
17[ -e "/var/cache/gdm/$USER/dmrc" ] && \
18  grep -q 000debathena-nocalls "/var/cache/gdm/$USER/dmrc" && \
19  rm "/var/cache/gdm/$USER/dmrc"
Note: See TracBrowser for help on using the repository browser.