[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

118.0. "Setting up DEFAULT directory" by TLE::AURENZ (Scot, DTN 381-0616, zko2-3/n30) Fri Feb 03 1989 10:59

    
    I'd like to put all my sundry DECW$ files in a subdirectory.
    
    I see there's a DECW$USER_DEFAULTS logical, but it's in the
    SYSTEM name table. Where is this logical initialized, and
    can I set it up on an individual basis? 
    
    Thanks!
    						Scot

T.RTitleUserPersonal
Name
DateLines
118.1AXEL::FOLEYRebel without a ClueFri Feb 03 1989 13:358

	I create the logical in a command file called by LOGIN.COM and
	DECW$LOGIN.COM.  Unfortunately, due to a bug, DECterm doesn't
	recognize the logical.

							mike

118.2I'd be happy with half a loaf ...COMICS::BELLMirror or window ?Mon Feb 06 1989 08:2617
Re .0,.1
    
>   ... DECterm doesn't recognize the logical. 
    
    That's still more than I'm getting ... I can't even get the &'%$&
    session manager to recognise the logical (ie., the DECW$SM_COLOR.DAT
    and _GENERAL.DAT files still clutter up my login directory). 
    
    At what point does DECW reference the logical name ? I'm defining
    it in my LOGIN.COM - is that too late ? Should later operations
    reference the current translation ? They don't appear to ...
    Does it have to be in a specific table (currently loading into JOB)
    or at an elevated mode ?
    
    Grateful for any assistance,
    Frank

118.3What can not be moved without some troubleIAGO::SCHOELLERWho's on first?Mon Feb 06 1989 09:5126
Any clients which are started as spawned subprocesses of your session manager
process will recognize a process, job or group wide definition of
DECW$USER_DEFAULTS set in your DECW$LOGIN.COM (I would not recommend using group
unless you have only one account per group).  Any clients running from or as
spawned subprocesses of a DECterm login will recognize a process, job or group
wide definition set in LOGIN.COM.  If DEC$LOGIN.COM comes before LOGIN.COM
during a normal session startup.  Keep this in mind when doing group wide
definitions.  In general, I would recommend using job logicals as these will
effect subprocesses which do not have a CLI (ie: RUN/PROC FOO).

The DECterm controller process, the window manager and the session manager
do not respond too these logical definitions (except a group wide definition
which might have been hanging around from before).  That is because they are
detached processes and make no attempt to invoke LOGIN.COM or DECW$LOGIN.COM
within their job (for various reliability reasons).

If you redefine system wide (or group wide during systartup_v5.com) the
value for DECW$USER_DEFAULTS tyen you can move all .DAT files.  Otherwise,
*.DECTERM, DECW$SM_*.DAT and DECW$XDEFAULTS.DAT must be in SYS$LOGIN.

My suggested long term solution would be to allow specification of an alternate
location for DECW$USER_DEFAULTS and DECW$LOGIN.COM in SYSUAF.DAT as can be
done with LOGIN.COM.  But that is another issue altogether.

Dick

118.4Can't do it nohow...CIM::KAIRYSMichael KairysWed Feb 08 1989 11:0211
    > If you redefine system wide (or group wide during systartup_v5.com) the
    > value for DECW$USER_DEFAULTS tyen you can move all .DAT files.  Otherwise,
    > *.DECTERM, DECW$SM_*.DAT and DECW$XDEFAULTS.DAT must be in SYS$LOGIN.
    
    I tried both these (group and system) and in neither case were my
    defaults files found when I quit and restarted my session.
    
    I sure wish it would work...



118.5Try this...IAGO::SCHOELLERWho's on first?Wed Feb 08 1989 14:399
If the logical is defined GROUP or SYSTEM in SYSTARTUP_V5.COM that should work,
unless they have done something like referenced a specific logical name table.
If that is the case, then you might try the decw$logical_names table.

Again, this should be done in SYSTARTUP_V5.COM and then not touched in
DECW$LOGIN.COM.

Dick

118.6Related topic to user defaults - Resource List hierarchyOIWS20::BRYSONWed Feb 15 1989 22:0826
How about a related topic to the DECW$USER_DEFAULTS issue?

I understand that the resource list is obtained from a hierarchy of files.
The way it has been explained to me is that the resources are destructively
merged in the following order:

1. Application class name in DECW$SYSTEM_DEFAULTS. For example, a file
   for clock is named DECW$CLOCK.DAT.

2. Application class name in DECW$USER_DEFAULTS. Same name as above.

3. SYS$LOGIN:DECW$XDEFAULTS.DAT

4. Resource file pointed to by the logical DECW$ENVIRONMENT OR a file
   in SYS$LOGIN:DECW$XDEFAULTS-host.DAT, where host is the node where the
   client is being executed.

I know 1-3 are correct, but I cannot seem to get 4 to work.  Should the
logical go in DECW$LOGIN.COM? Is there a particular table it should go in?
I tried just the DECW$XDEFAULTS-host.DAT also and could not get it to work.

Any ideas what I might be doing wrong?

David

118.7DECW$Environment does not appear to be available in DECwindows V5.1 (SDC)LNKUGL::BOWMANBob Bowman, CSC/CS SPACE TeamTue Mar 07 1989 09:463
An examination of the relevant code leads me to conclude that the
DECW$Environment logical has not yet been implemented for VMS.

118.8DECW$XDEFAULTS-host.DAT too?OIWS20::BRYSONTue Mar 07 1989 16:208
    Does this mean that DECW$XDEFAULTS-hostname.DAT is also not
    implemented or is it just the DECW$ENVIRONMENT logical?
    
    Thanks for the info,
    
    David
    

118.9There is no support for either the logical or the fileLNKUGL::BOWMANBob Bowman, CSC/CS SPACE TeamTue Mar 07 1989 18:175
In the section of code which I assume should handle this, the ULTRIX thread
creates a filename of the mentioned type and returns success. The VMS thread
returns false. My conclusion is that there is a location in code where this 
can (will?) be implemented, but there is nothing there yet.

118.10Thanks for the info!OIWS20::BRYSONTue Mar 07 1989 18:463
    Thanks!
    

118.11Who's on first?CIARAN::TDELLAFERATony, 297-2935, MRO1-1/A65Thu Mar 30 1989 10:2338
    
    Ok, lets try this again...  perhaps I'm missing something here.
    
    If I set DECW$USER_DEFAULTS in SYSTARTUP_V5.COM then everyone who uses
    my workstation will have find his/her defaults in the same directory,
    in fact, there will only be one communal copy of "user" defaults.  This
    may be  an incorrect interpretation on my part, but I really can't see
    how useful this could be.  What one really wants is the ability to move
    all his/her defaults out of SYS$LOGIN to some reasonable place in
    his/her personal file hierarchy.
    
    If I set DECW$USER_DEFAULTS in my DECW$LOGIN.COM then it doesn't effect
    the session manager because the session manager is already running.  It
    will, however, effect all other processes from then on.  Lastly, if I
    set it in my LOGIN.COM it will then effect only those things run from
    that point on.
    
    Can someone provide a definitive analysis of what the effects would be
    if it were set in each place and how setting it in the
    DECW$LOGICAL_NAMES or the system/process/job tables would effect this
    translation?  I.e., do DECwindows programs check the DECW$LOGICAL_NAMES
    table first?
    
    Someone suggested a new field in SYSUAF.DAT to allow the moving of
    DECwindows data files (the same way login.com can be moved).  This
    seems reasonable but could take forever to get implemented.  A good
    interim solution I would think would be to have the session manager
    look in some username parameterized subdirectory of a globally defined
    user defaults area (i.e., SYS$COMMON:[DECW$DEFAULTS.USER.TDELLAFERA])
    or allow there to be a single redirect file that a user can place
    in SYS$LOGIN that contains the name of the directory for all DECwindows
    defaults.
    
    						Still looking for a better
    						defaults mouse trap,
    						Tony...
    

118.12What about something between loginout and SM?VINO::WITHROWRobert WithrowThu Mar 30 1989 10:467
Re: .-1

Or... Some way to have a command file executed between the time
decw$loginout validates the username/password and the time the
session manager is started.  This would also allow (I think) one to
specify his own window manager on a per-user basis...

118.13What about remote clients?CIM::KAIRYSMichael KairysThu Mar 30 1989 15:4917
    What about defaults files used by clients running on remote,
    non-display nodes?
    
    I run Notes on a big VAX with which my VS2000 is MIVC'd. The logical
    DECW$USER_DEFAULTS on the big VAX points to my SYS$LOGIN. I want to
    create a private copy of NOTES$DEFAULTS.DAT. I assume if I put it in my
    SYS$LOGIN directory it will be found, but when is it read? Every time
    the remote client starts up? 
    
    If the defaults file is read when the client runs, then I should be
    able to redefine DECW$USER_DEFAULTS in my LOGIN.COM on that node. I run
    the remote client with RUN/DETACH SYS$SYSTEM:LOGINOUT, so my LOGIN.COM
    should be executed in the context of the client's process, true? And if
    the client is Notes, and it's looking for NOTES$DEFAULTS.DAT in
    DECW$USER_DEFAULTS: before DECW$SYSTEM_DEFAULTS:, then it should all
    come together, true?

118.14It's tacky, but have you tried DECW$STARTSM.COM?ROBOT::ENDSLEYMJ Endsley, SWS @ St. LouisThu Mar 30 1989 19:1817
    RE: .11, .12

    How about modifying SYS$MANAGER:DECW$STARTSM.COM?  I haven't tried it,
    but this might be a way to answer both the "where are my resource
    files" and "what is my window manager" (try redefining DECW$WINMGREXE?)
    questions.  I think/hope STARTSM runs in the context of the user who
    has logged in.

    Of course, the next DECwindows/VMS update that comes along may clobber
    DECW$STARTSM :-(

    Just a thought.  I'll have to try this myself the next time I get on a
    workstation... 

    Mike Endsley
    SWS @ STO