source: trunk/debathena/debathena/xsession/debian/debathena-nocalls.sh @ 24976

Revision 24976, 598 bytes checked in by jdreed, 13 years ago (diff)
In xsession: * Don't use dpkg-query because it slows logins down; instead ship actual scripts in /usr/share and source them (Trac #778)
Line 
1if [ "$GDMSESSION" = "000debathena-nocalls" ]; then
2    export NOCALLS=1
3    message "You have chosen to log in without your customizations." \
4        "Your dotfiles will be ignored in favor of the system" \
5        "default settings.  You can use this session to fix any" \
6        "problems with your dotfiles."
7fi
8
9# You don't actually want nocalls as your default session
10[ -e "$HOME/.dmrc" ] && \
11  grep -q 000debathena-nocalls "$HOME/.dmrc" && \
12  rm "$HOME/.dmrc"
13[ -e "/var/cache/gdm/$USER/dmrc" ] && \
14  grep -q 000debathena-nocalls "/var/cache/gdm/$USER/dmrc" && \
15  rm "/var/cache/gdm/$USER/dmrc"
Note: See TracBrowser for help on using the repository browser.