diff options
author | Than Ngo <than@redhat.com> | 2000-08-22 13:04:56 +0000 |
---|---|---|
committer | Than Ngo <than@redhat.com> | 2000-08-22 13:04:56 +0000 |
commit | e95ca24cd9d5a035c71e57317179be2988843235 (patch) | |
tree | ef9f1aa82a557162c71293a73c2ff4c689b1c943 /prefdm | |
parent | 4bc6a29959062d84efc2199d3db1c06ffaed2f96 (diff) | |
download | initscripts-r5-47.tar initscripts-r5-47.tar.gz initscripts-r5-47.tar.bz2 initscripts-r5-47.tar.xz initscripts-r5-47.zip |
* Add KDE2 supportr5-47
Diffstat (limited to 'prefdm')
-rwxr-xr-x | prefdm | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -18,12 +18,15 @@ fi preferred= if [ -f /etc/sysconfig/desktop ]; then - if grep -q GNOME /etc/sysconfig/desktop 2>/dev/null; then + source /etc/sysconfig/desktop >/dev/null 2>&1 + if [ "$DESKTOP" = GNOME ]; then preferred=gdm - elif grep -q KDE /etc/sysconfig/desktop 2> /dev/null; then - preferred=kdm - elif grep -q AnotherLevel /etc/sysconfig/desktop 2> /dev/null; then - preferred=xdm + elif [ "$DESKTOP" = KDE -o "$DESKTOP" = KDE1 ]; then + preferred=/usr/bin/kdm + elif [ "$DESKTOP" = KDE2 ]; then + preferred=/usr/lib/kde2/bin/kdm + elif [ "$DESKTOP" = AnotherLevel ] ; then + preferred=/usr/X11R6/bin/xdm fi fi if [ -z "$preferred" ]; then @@ -38,4 +41,4 @@ fi if [ -n "$preferred" ] && which $preferred >/dev/null 2>&1; then exec `which $preferred` $* fi -exit 1 +exit 1 |