Revision 25535,
1.1 KB
checked in by jdreed, 12 years ago
(diff) |
In gdm-config:
* Update athena-session for the Unity world
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[25171] | 1 | #!/bin/sh |
---|
| 2 | # |
---|
| 3 | # A wrapper script to decide how to invoke gnome-session |
---|
| 4 | GNOME_SESSION_VER=`dpkg-query --showformat='${Version}' --show gnome-session` |
---|
| 5 | |
---|
| 6 | SESSION="gnome-session" |
---|
| 7 | ARGS="" |
---|
| 8 | |
---|
| 9 | # STDERR will go somewhere useful at this point, right? |
---|
| 10 | echo "**** Athena session wrapper (/usr/bin/athena-session)" >&2 |
---|
[25535] | 11 | echo "**** session started at $(date)" >&2 |
---|
[25171] | 12 | |
---|
| 13 | # Support for --session was added in gnome-session 2.32.1-0ubuntu2 |
---|
| 14 | # according to the changelog |
---|
| 15 | if dpkg --compare-versions "$GNOME_SESSION_VER" ge '2.32.1-0ubuntu2~'; then |
---|
[25535] | 16 | if [ -e /usr/share/gnome-session/sessions/classic-gnome.session ]; then |
---|
| 17 | ARGS="--session=classic-gnome" |
---|
| 18 | elif [ -e /usr/share/gnome-session/sessions/ubuntu-2d.session ]; then |
---|
| 19 | ARGS="--session=ubuntu-2d" |
---|
| 20 | elif [ -e /usr/share/gnome-session/sessions/ubuntu.session ]; then |
---|
| 21 | ARGS="--session=ubuntu" |
---|
| 22 | else |
---|
| 23 | zenity --error --text="Can't find a valid GNOME session to run (shouldn't happen). Please report this error to bugs@mit.edu and mention the hostname ($(hostname -f)) in your report." |
---|
| 24 | exit 1 |
---|
| 25 | fi |
---|
[25171] | 26 | fi |
---|
| 27 | |
---|
[25535] | 28 | echo "**** About to run $SESSION $ARGS $@" >&2 |
---|
[25171] | 29 | exec "$SESSION" "$ARGS" "$@" |
---|
Note: See
TracBrowser
for help on using the repository browser.