diff options
author | Chmouel Boudjnah <chmouel@mandriva.org> | 1999-12-22 02:08:19 +0000 |
---|---|---|
committer | Chmouel Boudjnah <chmouel@mandriva.org> | 1999-12-22 02:08:19 +0000 |
commit | a347d25db6b5c471aec82a42447d116c69484a1d (patch) | |
tree | 898d522cce36bad542476715a8da56af8f561ad2 | |
parent | dddd027ac35c1992f17af7780a08875cc9a840e5 (diff) | |
download | common-data-a347d25db6b5c471aec82a42447d116c69484a1d.tar common-data-a347d25db6b5c471aec82a42447d116c69484a1d.tar.gz common-data-a347d25db6b5c471aec82a42447d116c69484a1d.tar.bz2 common-data-a347d25db6b5c471aec82a42447d116c69484a1d.tar.xz common-data-a347d25db6b5c471aec82a42447d116c69484a1d.zip |
"Seethechangelog"
-rwxr-xr-x | bin/fndSession | 68 | ||||
-rw-r--r-- | sbin/Xsession | 108 |
2 files changed, 0 insertions, 176 deletions
diff --git a/bin/fndSession b/bin/fndSession deleted file mode 100755 index 5697a2d..0000000 --- a/bin/fndSession +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/sh -# fndSession (c) MandrakeSoft -# Chmouel Boudjnah <chmouel@mandrakesoft.com> - -LIST="SessionTypes" - -TMP=$(/bin/mktemp /tmp/.kdm.XXXXXXX) - -[ -x /usr/bin/kde ] && { -LIST="$LIST=kde"; FIRST=yes -} -[ -x /usr/bin/gnome-session ] && { - if [ "$FIRST" = "yes" ];then - LIST="$LIST;gnome" - else - LIST="$LIST=gnome" - FIRST="yes" - fi -} -[ -e /usr/share/apps/switchdesk/Xclients.anotherlevel ] && { - if [ "$FIRST" = "yes" ];then - LIST="$LIST;anotherlevel" - else - LIST="$LIST=anotherlevel" - FIRST="yes" - fi -} - -[ -x /usr/X11R6/bin/wmaker ] && { - if [ "$FIRST" = "yes" ];then - LIST="$LIST;WindowMaker" - else - LIST="$LIST=WindowMaker" - FIRST="yes" - fi -} -[ -x /usr/X11R6/bin/afterstep ] && { - if [ "$FIRST" = "yes" ];then - LIST="$LIST;AfterStep" - else - LIST="$LIST=AfterStep" - FIRST="yes" - fi -} -[ -x /usr/X11R6/bin/icewm ] && { - if [ "$FIRST" = "yes" ];then - LIST="$LIST;Icewm" - else - LIST="$LIST=Icewm" - FIRST="yes" - fi -} -[ -x /usr/bin/xfce ] && { - if [ "$FIRST" = "yes" ];then - LIST="$LIST;Xfce" - else - LIST="$LIST=Xfce" - FIRST="yes" - fi -} - -if [ $FIRST = "yes" ];then - LIST="$LIST;default;failsafe;" -else - LIST="$LIST=default;failsafe;" -fi -sed "s/^SessionTypes.*/"$LIST"/" /usr/share/config/kdmrc > $TMP && \ -mv $TMP /usr/share/config/kdmrc diff --git a/sbin/Xsession b/sbin/Xsession deleted file mode 100644 index a83a953..0000000 --- a/sbin/Xsession +++ /dev/null @@ -1,108 +0,0 @@ -#!/bin/bash -login -# (c) 1999 Red Hat Software, Inc. -# Modification for Linux-Mandrake by Chmouel Boudjnah <chmouel@mandraksoft.com> - -xsetroot -solid #356390 - -# redirect errors to a file in user's home directory if we can -for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER" -do -if ( cp /dev/null "$errfile" 2> /dev/null ) -then -chmod 600 "$errfile" -exec > "$errfile" 2>&1 -break -fi -done - -# clean up after xbanner -if [ -f /usr/X11R6/bin/freetemp ]; then -freetemp -fi - -userresources=$HOME/.Xresources -usermodmap=$HOME/.Xmodmap -sysresources=/usr/X11R6/lib/X11/xinit/.Xresources -sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap - -# merge in defaults and keymaps -if [ -f $sysresources ]; then -xrdb -merge $sysresources -fi - -if [ -f $sysmodmap ]; then -xmodmap $sysmodmap -fi - -if [ -f $userresources ]; then -xrdb -merge $userresources -fi - -if [ -f $usermodmap ]; then -xmodmap $usermodmap -fi - -# now, we see if xdm/gdm/kdm has asked for a specific environment -case $# in -1) -case $1 in -KDE) -exec startkde -;; -Gnome) -exec gnome-session -;; -AfterStep) -exec /usr/X11R6/bin/afterstep -;; -AnotherLevel) -# we assume that switchdesk is installed. -exec /usr/share/apps/switchdesk/Xclients.anotherlevel -;; -BlackBox) -exec /usr/X11R6/bin/bbdrake -;; -# Work but some end users don't understant how it works. So, we disable it. -#BlackBox/KDE) -#exec /usr/X11R6/bin/bbdrake_kde -#;; -Enlightenment) -exec /usr/bin/enlightenment -;; -FVWM) -exec /usr/X11R6/bin/fvwm -;; -FVWM2) -exec /usr/X11R6/bin/fvwm2 -;; -IceWM) -exec /usr/X11R6/bin/icewm -;; -MWM) -exec /usr/X11R6/mwm -;; -WindowMaker) -[ -f $HOME/GNUstep/Defaults/WindowMaker ] || { -/usr/X11R6/bin/wmaker.inst --batch -} -exec /usr/X11R6/bin/wmaker -;; -XFCE) -exec /usr/X11R6/bin/xfwm -;; -FailSafe) -exec xterm -geometry 80x24-0-0 -;; -esac -esac - -# otherwise, take default action -if [ -x "$HOME/.xsession" ]; then -exec "$HOME/.xsession" -elif [ -x "$HOME/.Xclients" ]; then -exec "$HOME/.Xclients" -elif [ -x /etc/X11/xinit/Xclients ]; then -exec /etc/X11/xinit/Xclients -else -exec xsm -fi |