Revision 24439,
718 bytes
checked in by jhamrick, 15 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 | |
---|
1 | if [ "$(dpkg-query -W -f '${Status}' debathena-xsession 2>/dev/null)" != "install ok installed" ]; then |
---|
2 | return 0 |
---|
3 | fi |
---|
4 | |
---|
5 | if [ "$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." |
---|
11 | fi |
---|
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.