You are not logged in.

#1 2008-04-03 09:19:27

dids22
Member
Registered: 2007-01-02
Posts: 251

Gtk-WARNING **: cannot open display:

hi
i just want to test gnome so i install it additionally to xfce4 which serve me until now

i closed x-server (alt + ctrl +  ...)

and run gnome-session.
the out put it

Gtk-WARNING **: cannot open display:

xfce4 works fine.
when i edit the /.xinitrc file to exec gnome-session  and startx gnome working fine.

what is the difference if run the command "gnome-session" from shell or fron the /.xinitrc file ??

thanks

Last edited by dids22 (2008-04-03 09:32:51)

Offline

#2 2008-04-03 10:17:47

danielsoft
Member
From: Czech Republic
Registered: 2008-02-16
Posts: 102

Re: Gtk-WARNING **: cannot open display:

the .xinitrc it is executed by the X window system after the X Server is started

if you run gnome-session from a console shell and there is no X server started, it cannot open the display...

the X server is normally started during "startx" or "xinit"

Last edited by danielsoft (2008-04-03 10:18:40)


may the Source be with you

Offline

#3 2008-04-03 10:22:23

dids22
Member
Registered: 2007-01-02
Posts: 251

Re: Gtk-WARNING **: cannot open display:

then why in shell when i start xfce (startxfce4) it do work?

Offline

#4 2008-04-03 11:28:32

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: Gtk-WARNING **: cannot open display:

Because startxfce4 check if there is an X server running. If not, it starts one.
gnome-session just tries to start a gnome session and expects an X server to already be running.

Difference in implementation is all...


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

Board footer

Powered by FluxBB