Unix administration - .xsession not being run

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > June 2007 > .xsession not being run





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author .xsession not being run
mark.bergman@thales-is.com

2007-06-05, 7:20 am

I am porting from Digital Unix to Red Hat Linux 4, and
finding .xsession file is not executed after login.

Machine boots to run-level 5, user logs on, /etc/X11/gdm/gdm.conf has
defaultSession="mwm.desktop" (we need mwm for separate reasons).
I am finding X startup quite confusing, but I suspect /etc/X11/xdm/
Xsession runs /usr/share/switchdesk/Xclients.mwm, which is a script
running mwm from /usr/X11R6/bin.
User sees a blank screen, but RMB gives menu to bring up a terminal
etc.
I want to display our own X application automatically after login -
where should I put this?

(Looking at the chain of scripts, it appears that a search is made for
files named "mwm" in various locations, so possibly in our own new
file /usr/local/bin/mwm ?)

TIA
Mark

Jeremy Worrells

2007-06-08, 1:24 pm

On 2007-06-05, mark.bergman@thales-is.com <mark.bergman@thales-is.com> wrote:
> I am porting from Digital Unix to Red Hat Linux 4, and
> finding .xsession file is not executed after login.
>
> Machine boots to run-level 5, user logs on, /etc/X11/gdm/gdm.conf has
> defaultSession="mwm.desktop" (we need mwm for separate reasons).
> I am finding X startup quite confusing, but I suspect /etc/X11/xdm/
> Xsession runs /usr/share/switchdesk/Xclients.mwm, which is a script
> running mwm from /usr/X11R6/bin.
> User sees a blank screen, but RMB gives menu to bring up a terminal
> etc.
> I want to display our own X application automatically after login -
> where should I put this?
>
> (Looking at the chain of scripts, it appears that a search is made for
> files named "mwm" in various locations, so possibly in our own new
> file /usr/local/bin/mwm ?)
>
> TIA
> Mark
>


My first stab at this would be to check that .xsession has execute
permissions. If that does not work, you may have to dig deeper into the
Xclients.mwm.

Jeremy

--
Jeremy Worrells
Unix Generalist
jeremy@worrells.org
Andy Bennett

2007-06-11, 7:19 am

Hi,

> I am porting from Digital Unix to Red Hat Linux 4, and
> finding .xsession file is not executed after login.
>
> Machine boots to run-level 5, user logs on, /etc/X11/gdm/gdm.conf has
> defaultSession="mwm.desktop" (we need mwm for separate reasons).
> I am finding X startup quite confusing, but I suspect /etc/X11/xdm/
> Xsession runs /usr/share/switchdesk/Xclients.mwm, which is a script
> running mwm from /usr/X11R6/bin.
> User sees a blank screen, but RMB gives menu to bring up a terminal
> etc.
> I want to display our own X application automatically after login -
> where should I put this?
>
> (Looking at the chain of scripts, it appears that a search is made for
> files named "mwm" in various locations, so possibly in our own new
> file /usr/local/bin/mwm ?)


Have you tried using .xinitrc instead?
..xinitrc and .xsession are usually executed depending on how the xserver
is started. i.e. a startx will use one and an xdm session will use the
other.



Regards,
@ndy

--
andyjpb@ashurst.eu.org
http://www.ashurst.eu.org/

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com