[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

279.0. "too many .logins" by GIDDAY::KOTWAL (Ain't no flies of us - Mate!) Thu Feb 23 1989 00:38

Using UWS 2.0 (RISC)

When I create a terminal window using the dxsession manager, .login is
run for each window created.  i.e. dxterm seems to be run as a login window
each time, instead of a subwindow.

This is a real pain as programs which I want started once per session,
start multiple times with some rather nasty results.

I have tried putting sm.TerminalEmulatorName: dxterm in .Xdefaults, but
then .login is NEVER run, even for the first window.

Is this a bug/feature, and is there any way around it?

Secondly, when I quit by just using the session manager "quit", I am logged
out as normal, but my login entries in /etc/utmp are  NOT removed!!!

This makes everything that uses /etc/utmp give misleading results.

I have a program which writes to all my active terminals given a set of
circumstances, which simply hung... the terminals reported in /etc/utmp
were of course not actually in use.  What a PAIN!!!!

I can get around this by going and quitting each and every window in
turn... but this should not be necessary!  It wasn't on UWS 1.1.

Is this a known bug???

Thanks,

Rashid.

T.RTitleUserPersonal
Name
DateLines
279.1FLUME::dikeThu Feb 23 1989 09:275
With a session manager running, .login should never be run in a terminal
emulator.  You are seeing correct behavior.  If stuff needs to run when you log
in, put it in .X11Startup.
				Jeff

279.2dxterm -lsOIWS20::BRYSONThu Feb 23 1989 09:389
    The only time that .login should be run on a dxterm is if you start
    dxterm with the -ls switch which specifies that it is a login shell.
    Otherwise, it will never be executed.  However, your .cshrc (if you
    are running csh) will be executed everytime since it is a new shell
    invocation.  Re .1 states it best.
    
    David
    

279.3GIDDAY::KOTWALAin't no flies of us - Mate!Thu Feb 23 1989 17:3321
With all due respect, I think you're missing the point of my statement in
.0.

> When I create a terminal window using the dxsession manager, .login is
> run for each window created.  i.e. dxterm seems to be run as a login window
> each time, instead of a subwindow.

I had not at that stage modified .Xdefaults to add 

		sm.TerminalEmulatorName: dxterm

Therefore I presume that default actions were being taken.
This would indicate that a "dxterm -ls ...." was being done by default.

If this is indeed the case, I find it rather strange.  I would have thought
that it would be better to make the default case (no) -ls, and heavily
document in dxterm(1) that you should use .X11startup instead of .login.

Rashid.

279.4Some day I should learn to readFLUME::dikeFri Feb 24 1989 08:334
You're right.  The default is for the session manager to do a dxterm -ls.  That
seems to be to be a bug.  You did find a good work-around, though.
				Jeff