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)
|
Rev | Line | |
---|
[24439] | 1 | if [ "$(dpkg-query -W -f '${Status}' debathena-xsession 2>/dev/null)" != "install ok installed" ]; then |
---|
| 2 | return 0 |
---|
| 3 | fi |
---|
| 4 | |
---|
[23851] | 5 | if [ "$GDMSESSION" = "000debathena-nocalls" ]; then |
---|
[23852] | 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." |
---|
[23853] | 11 | fi |
---|
[23852] | 12 | |
---|
[23853] | 13 | # You don't actually want nocalls as your default session |
---|
[24321] | 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.