Operating System - HP-UX
1833677 Members
4273 Online
110062 Solutions
New Discussion

Re: Where is SESSIONTYPE set up?

 
Gary Cooper_1
Esteemed Contributor

Where is SESSIONTYPE set up?

I have two machines, pic2004 and pic2025. User accounts are kept on a third machine, uxhome2 and are 'distributed' using NIS, so that the user sees exactly the same on pic2004 and pic2025.

I have a .xsession file in the users home directory, so that when they log in, they don't get access to any terminal windows, but only particular application programs.

This works fine on pic2004, but on pic2025, they get a normal CDE session with access to terminal windows.

.dtprofile is obviously the same, as are /usr/dt/config/Xconfig. The only difference between the /etc/dt/config/Xconfigs is one has a different Dtlogin*language setting.

I've got a suspicion that the issue may be due to the SESSIONTYPE variable.

Can anyone tell me where this is set up - not where I should change it, but where it is actually set up in the first instance?

Thanks,

Gary
4 REPLIES 4
Arunvijai_4
Honored Contributor

Re: Where is SESSIONTYPE set up?

Hi Gary,

Check these threads,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=96383
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=296846

I think, it should be in $HOME/.dtprofile

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Alex Glennie
Honored Contributor

Re: Where is SESSIONTYPE set up?

3 ways via SESSIONTYPE=


in /usr/dt/bin/Xsession

on a per user in .dtprofile

or create file in /etc/dt/config/Xsession.d/##.xdm
with perms 555
Gary Cooper_1
Esteemed Contributor

Re: Where is SESSIONTYPE set up?

Arun, I'd already check previous postings, but thanks anyhow.

Alex, Hi! SESSIONTYPE is not currently set in any of the three places that you mention. /usr/dt/bin/Xsession actually tests for SESSIONTYPE, so I guess it should be set up before /usr/dt/bin/Xsession is called.

Cheers,

Gary
Gary Cooper_1
Esteemed Contributor

Re: Where is SESSIONTYPE set up?

Hi Chaps,

I got to the bottom is this problem and thought you may be interested in what the fix was, so here goes...

As part of an application installation, /usr/dt/config/Xsession gets cutomised and given a new name (it now checks for the existance of ~/.xsession when deciding which window manager to use). A corresponding entry is made in /usr/dt/config/Xconfig, so that the new Xsession is used.

This would have been OK, except for the fact that there was also an unmodified Xconfig in /etc/dt/config - this file was being picked up in preference to the one in /usr.

Anyway, I made the customisation to the file in /etc and the user's environment was just fine after that.

Thanks again for your help.

Gary