1832618 Members
2500 Online
110043 Solutions
New Discussion

Default Profile for CDE

 
SOLVED
Go to solution
EDWARD WYNN_1
Occasional Advisor

Default Profile for CDE

Hi,

I was wondering if there is a way to create a default dtprofile file for all CDE users - just as /etc/profile is the default for terminal logins ? I do not want to run users .profile files when they log in so DTSOURCEPROFILE=true is no good, and /etc/profile does not seem to get run when I login through CDE.

Any ideas greatly appreciated,

Eddie
3 REPLIES 3
Steve Steel
Honored Contributor

Re: Default Profile for CDE

Hi

On a system-wide basis, enable the "loginShell" resource for the terminal
emulators by creating /etc/dtconfig/C/sys.resources (chmod 644) containing
*loginShell: True

Then whenever someone logs in /etc/profile and .profile are read.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Alex Glennie
Honored Contributor

Re: Default Profile for CDE

see /usr/dt/config/sys.dtprofile.

Steve's suggestion will also work I suspect since it forces the likes of dtterm etc to automatically run your users .prfile (see man dtterm) ...... on a different tack be aware that if you create a shell script called $HOME/.dt/sessions/sessionetc it will be run at CDE login only.

It's opposite number = sessionetc (run just before logout - see CDE advance users guide for more details).

maybe it would be more suitable for your purposes ?