Dear All,
I decided to have a play with Gnome (usually an FVWM user.) I managed to get a nice user-friendly desktop by doing
ln -s /home/username /home/username/Desktop/username
and creating a .xsession file that said
#!/usr/bin/tcsh
/usr/bin/gnome-panel & /usr/bin/gnome-wm
But when the session's finished with, hitting the "Log out" option in the system menu only seems to close the gnome-panel, not actually to end the X session. I suspect that this is because I'm starting gnome-panel the "wrong" way. Any ideas, please?
On Thu, Nov 29, 2007 at 04:46:50PM +0000, Dan Hatton wrote:
Dear All,
I decided to have a play with Gnome (usually an FVWM user.) I managed to get a nice user-friendly desktop by doing
ln -s /home/username /home/username/Desktop/username
and creating a .xsession file that said
#!/usr/bin/tcsh
/usr/bin/gnome-panel & /usr/bin/gnome-wm
Try instead using an .xsession of:
--- BEGIN --- #!/usr/bin/bash
exec /usr/bin/gnome-session --- END ---
Which should start a gnome session instead, that should then start the panel and the window mangler allll by itself.
Cheers,
On Thu, Nov 29, 2007 at 04:46:50PM +0000, Dan Hatton wrote:
Dear All,
I decided to have a play with Gnome (usually an FVWM user.) I managed to get a nice user-friendly desktop by doing
ln -s /home/username /home/username/Desktop/username
and creating a .xsession file that said
#!/usr/bin/tcsh
/usr/bin/gnome-panel & /usr/bin/gnome-wm
But when the session's finished with, hitting the "Log out" option in the system menu only seems to close the gnome-panel, not actually to end the X session. I suspect that this is because I'm starting gnome-panel the "wrong" way. Any ideas, please?
Not directly connected with your problem but I run gnome-panel on my fvwm window manager. I just run it on an 'as needed' basis when I can't remember how to do something and I use the gnome-panel menus to find what I need.
Re: your problem, are you running X from startx? It may well be that gnome is expecting to be run from gdm but I'm not sure.
When I get home I can check to see if gnome-panel's log out works for me.
In fact I can try it here, but will have to send this first.
byeeeee.............
On Thu, Nov 29, 2007 at 04:56:09PM +0000, Chris G wrote:
On Thu, Nov 29, 2007 at 04:46:50PM +0000, Dan Hatton wrote:
Dear All,
I decided to have a play with Gnome (usually an FVWM user.) I managed to get a nice user-friendly desktop by doing
ln -s /home/username /home/username/Desktop/username
and creating a .xsession file that said
#!/usr/bin/tcsh
/usr/bin/gnome-panel & /usr/bin/gnome-wm
But when the session's finished with, hitting the "Log out" option in the system menu only seems to close the gnome-panel, not actually to end the X session. I suspect that this is because I'm starting gnome-panel the "wrong" way. Any ideas, please?
Not directly connected with your problem but I run gnome-panel on my fvwm window manager. I just run it on an 'as needed' basis when I can't remember how to do something and I use the gnome-panel menus to find what I need.
Re: your problem, are you running X from startx? It may well be that gnome is expecting to be run from gdm but I'm not sure.
When I get home I can check to see if gnome-panel's log out works for me.
In fact I can try it here, but will have to send this first.
byeeeee.............
Well, not quite, running the gnome-panel logout doesn't log out here at work either. My diagnosis was correct I think, what I see on the terminal window where I invoked gnome-panel is:-
chrisg$ gnome-panel ** Message: Could not connect to power manager: Could not get owner of name 'org.gnome.PowerManager': no such name ** Message: Could not connect to power manager: Could not get owner of name 'org.gnome.PowerManager': no such name
** (gnome-panel:6116): WARNING **: Failed to establish a connection with GDM: No such file or directory
** (gnome-panel:6116): WARNING **: Failed to establish a connection with GDM: No such file or directory chrisg$
So gnome-panel was trying to talk to GDM to close down. (Those power manager errors appear when gnome-panel starts up)
On Thu, 29 Nov 2007, Chris G wrote:
Re: your problem, are you running X from startx? It may well be that gnome is expecting to be run from gdm but I'm not sure.
The aim of the exercise is to set up an account for another user, and the problem arose when he started the session from GDM. I'm connecting by ssh, so can never be sure that what I see when I test things is the same as what the user at the console sees. gnome-session looks good when I run it over ssh, so I've edited the .xsession as Brett suggested and crossed my fingers.
Dan
#!/usr/bin/tcsh
/usr/bin/gnome-panel & /usr/bin/gnome-wm
Does it work if you switch these around and move the ampersand to gnome-wm, ie:
/usr/bin/gnome-wm & /usr/bin/gnome-panel
I have a vague recollection that logout might work by waiting until the xsession script finishes, which in your case, it doesn't because it is waiting for the gnome-wm process to finish.
Anyway, nothing to test this on, so just ramblings :D.
Rob.