怎么转回GNOME
我在X窗口下用Desktop switching tool 选了FVM什么的,退出后startx进入了FVM什么的桌面,我就改不回去了,请问要在哪个文件中改,将STARTX启动的是进入GNOME。
$ less /etc/sysconfig/desktop
DESKTOP="GNOME"
$ ls
Xclientsxinitrcxinitrc.d
$ less Xclients
#!/bin/bash
# Copyright 1999 - 2001 Red Hat, Inc.
# License:GNU General Public License v2
# check to see if the user has a preferred desktop
PREFERRED=
if [ -f /etc/sysconfig/desktop ]; then
. /etc/sysconfig/desktop
if [ "$DESKTOP" = "GNOME" ]; then
PREFERRED=gnome-session
elif [ "$DESKTOP" = "KDE" ]; then
PREFERRED=startkde
elif [ "$DESKTOP" = "WINDOWMAKER" ]; then
PREFERRED=wmaker
fi
fi
if [ -n "$PREFERRED" ] && which $PREFERRED >/dev/null 2>&1; then
PREFERRED=`which $PREFERRED`
exec $PREFERRED
fi
# now if we can reach here, either no desktop file was present,
# or the desktop requested is not installed.
if [ -z "$PREFERRED" ]; then
GSESSION=gnome-session
STARTKDE=startkde
# by default, we run GNOME.
if which $GSESSION >/dev/null 2>&1; then
exec `which $GSESSION`
fi
# if GNOME isn't installed, try KDE.
if which $STARTKDE >/dev/null 2>&1; then
exec `which $STARTKDE`
fi
fi
# Failsafe.
# these files are left sitting around by TheNextLevel.
rm -f $HOME/Xrootenv.0
rm -f /tmp/fvwmrc* 2>/dev/null
# First thing - check the user preferences
if [ -f $HOME/.wm_style ] ; then
WMSTYLE=`cat $HOME/.wm_style |tr A-Z a-z`
case "$WMSTYLE" in
afterstep|windowmaker|mmaker)
exec /usr/X11R6/bin/RunWM --WindowMaker
;;
fvwm95|fvwm|fvwm2)
exec /usr/X11R6/bin/RunWM --Fvwm95
;;
mwm|lesstif)
exec /usr/X11R6/bin/RunWM --FvwmMWM
;;
esac
fi
# Argh! Nothing good is installed. Fall back to fvwm2 (win95-style) or twm
/usr/X11R6/bin/GNOME --Fvwm95 || {
# gosh, neither fvwm95 nor fvwm2 is available;
# fall back to failsafe settings
xclock -geometry 100x100-5+5 &
xterm -geometry 80x50-50+150 &
if [ -f /usr/bin/mozilla -a -f /usr/share/doc/HTML/index.html ]; then
mozilla /usr/share/doc/HTML/index.html &
fi
if [ -f /usr/X11R6/bin/GNOME ]; then
exec fvwm
else
exec twm
fi
} 运行switchdesk
试试看
或者
gdm
?
请问是直接在提示符下输入吗,我试试,谢谢了请问是直接在提示符下输入吗,我试试,谢谢了
是在图形界面的虚拟终端
页:
[1]