> > Maybe you could double-check that the dbus daemon is running before you > > "startx" > > > > Note that, if you start gnome-session directly, you don't need " > > dbus-launch --exit-with-session", > > just "gnome session" will do. > > > thanks for the reply,here is the error when i run gnome-session > dbus-update-activation-environment:error : unable to connect to D-Bus: > Unable to autolaunch a dbus-daemon without a $DISPLAY for x11 > gnome-session-binary[2855]:WARNING: using null backend for session tracking > gnome-session-binary[2855]:WARNING: unable to find required component > 'org.gnome.Shell'unable to init server:could not connect: Connection refused > > ** (gnome-session-failed:2867): WARNING **:cannot open display: > could you tell me how can i resolve this error? > It looks like $DISPLAY is not set and/or passed when starting gnome-session
My system uses a combination of ~/.xsession and startx to start X11 In startx there is a line: export DISPLAY=:0.0 ..and ~/.xsession calls gnome-session -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
