[SUMMARY] CDE: Adding Workspace Menu Items / Disabling auto screen-lock

From: David Foster <foster_at_dim.ucsd.edu>
Date: Wed Dec 04 2002 - 17:08:23 EST
Got no replies on the "disable auto-lock" query, seems like this
should be an easy fix but I sure cannot find it.

One workaround is to adjust the timeout value for the DT screen saver:

	/etc/dt/app-defaults/C/Dtscreen

As for adding workspace menu items, I've attached one SRDB doc
which explains why sometimes changes made in /etc/dt files may
not be seen by users. One person said to change the file 
sys.dtwmrc in  /usr/dt/config/C if my locale is standard. 
Actually this file should be *copied* to /usr/dt/config/C where it
will be used before the /usr/dt version. Then menu items can be
added.

Here is one example:

  to add extra telnet links:

  Menu TelnetMenu 
  { 
     "Remote Logins"       f.title 
     "poseidon"   f.exec "/usr/openwin/bin/xterm -bg black -fg green -sb -e
         telnet poseidon" 
     "barbie"   f.exec "/usr/openwin/bin/xterm -bg black -fg green -sb -e
         telnet barbie"
  } 

I was referred to a CDE FAQ:

	http://www.immt.pwr.wroc.pl/faq/msg00025.html
	
but this doesn't answer either of my questions.

Thanks to:

E. Annette Lee
Rene Occelli
Christer Eriksson
Jimmy De Laet

> 
> 
> Ok. Every time I have to dig into CDE I get a massive headache.
> 
> Can someone please tell me how I would:
> 
>   1) Add a Workspace menu item with mutiple options, system-wide.
>      I know how to add it for a single user, by modifying files
>      in ~user/.dt, but I would like to make this the default setup
>      that each user inherits.
>      
>      I've tried mucking with /etc/dt, but the changes don't
>      seem to get sucked in when a new user is created.
>      
>      It would be nice to be able to just modify a file which 
>      defines the menu, similar to XDM, and not have to bother
>      with "action files" etc..
>      
>   2) Make it so the automatic screen locking feature (after a
>      period of inactivity) is Off by default, or disable this 
>      feature if possible.
>      
> Dave
> 
> 
>    << All opinions expressed are mine, not the University's >>
> 
>   =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>    David Foster    National Center for Microscopy and Imaging Research
>     Programmer/Analyst     University of California, San Diego
>     dfoster@ucsd.edu       Department of Neuroscience, Mail 0608
>     (858) 534-4583         http://ncmir.ucsd.edu/
>   =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 
>    "The reasonable man adapts himself to the world; the unreasonable one
>    persists in trying to adapt the world to himself.  Therefore, all progress
>    depends on the unreasonable."   -- George Bernard Shaw
> 
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers


   << All opinions expressed are mine, not the University's >>

  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   David Foster    National Center for Microscopy and Imaging Research
    Programmer/Analyst     University of California, San Diego
    dfoster@ucsd.edu       Department of Neuroscience, Mail 0608
    (858) 534-7968         http://ncmir.ucsd.edu/
  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

   "The reasonable man adapts himself to the world; the unreasonable one
   persists in trying to adapt the world to himself.  Therefore, all progress
   depends on the unreasonable."   -- George Bernard Shaw
SRDB ID: 20466

SYNOPSIS: Configuring dtwmrc System Wide Desktop Changes using CDE 1.3 or
Solaris Desktop Extensions 1.0

DETAIL DESCRIPTION:

Custom global desktop setting are not taking effect in 
Solaris 2.6 or Solaris 7. Common Desktop Environment (CDE) 1.3
is being used.  The same problem occurs on Solaris 2.6 using 
Solaris Desktop Extensions (SDE) 1.0.  The /etc/dt/config/sys.dtwmrc 
file is being edited to create the changes but users are not seeing 
the changes when they login to CDE.  Same problem occurs when 
/usr/dt/config/sys.dtwmrc is used.

With earlier versions of CDE (1.2 and below), System Administrators 
could build system wide menu definitions by editing 
        /etc/dt/config...sys.dtwmrc
or 
        /usr/dt/config...sys.dtwmrc

All users saw the changes unless they explicitly customized their 
environment with a $HOME/.dt/...dtwmrc file.  

SDE 1.0 and CDE 1.3 have changed the process so that users have  
a $HOME/.dt/...dtwmrc file after their first login.  Subsequent
changes to the /etc/dt/config/...sys.dtwmrc will not be visible.  

SOLUTION SUMMARY:

System administrators can modify the system /etc/dt/config/sys.dtwmrc
or /usr/dt/config/sys.dtwmrc file to add a filename to the INCLUDE 
clause at the end of the file.  

Example:
        INCLUDE
        {
            $HOME/.dt/$LANG/wsmenu.dtwmrc
            /etc/dt/config/sys.dtwmrc.extras
            $HOME/.dt/user.dtwmrc
        }

The sys.dtwmrc.extras file will contain the actual changes that are being
made
to the system.  Since a new user will get a copy of the 
/etc/dt/config/sys.dtwmrc when the user first logs in, the INCLUDE clause 
will be there and sys.dtwmrc.extras containing the global changes will be
loaded.  The
System Administrator can change the included file and the users will get
the updates whenever they logout and log back in or restart the workspace
manager.

Notes on Search order:
When a user logs into CDE, the system looks for a dtwmrc file using
the following search order:

     $HOME/.dt/$LANG/dtwmrc
     $HOME/.dt/dtwmrc
     /etc/dt/config/$LANG/sys.dtwmrc
     /etc/dt/config/sys.dtwmrc
     /usr/dt/config/$LANG/sys.dtwmrc
     /usr/dt/config/sys.dtwmrc

Notes on SDE 1.0 and CDE 1.3 from:
InfoDoc 17743 CDE versions and Solaris versions
CDE 1.2            bundled with Solaris 2.6 and only supported on 2.6.
Cannot
                   be used with any other OS release.  And you cannot use
                   earlier versions of CDE with Solaris 2.6.

Solaris Desktop    "early-access release of CDE 1.3."  Contains many
features
Extension 1.0      of CDE 1.3, but is not true CDE 1.3.  May be used with
(SDX, SDE,         Solaris 2.6, but the user runs the risk of having
problems
SolarEZ)           when applying CDE 1.2 patches to SDE packages.  Not
                   supported for any version of Solaris except 2.6.

CDE 1.3            bundled with Solaris 7 and only supported on Solaris 7.
                   Cannot be used with any other OS release.  And you cannot
                   use earlier versions of CDE with Solaris 7.



BUG REPORT ID: 4194043
PRODUCT AREA: Windows
PRODUCT: CDE
SUNOS RELEASE: Solaris 7
HARDWARE: any
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Dec 4 17:15:07 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:59 EST