1752806 Members
5795 Online
108789 Solutions
New Discussion юеВ

CDE Menu

 
SOLVED
Go to solution
Sachin Patel
Honored Contributor

CDE Menu

Hi
I have /etc/dt/config/C/sys.dtwmrc file for right click menu. It was working fine till yesterday. It stops working and I have now default menu. I read man pages for dtwmrc and found same file on /usr/dt/config/C. Then I made link from here to /etc/dt/config/C/sys.dtwmrc.

Why is this happen?

sachin
Is photography a hobby or another way to spend $
14 REPLIES 14
Agam Upadhyay_1
New Member

Re: CDE Menu

Hi,

I always customize my sys.dtwmrc and keep it in $HOME/.dt directory as dtwmrc. And it has never given me a problem.
Have fun.
Truth is Victory
Sachin Patel
Honored Contributor

Re: CDE Menu

Hi Upadhyay,
It is good for personal use. But I have this system that is used by number of users and I do not want to maintain multiple copy.

Sachin
Is photography a hobby or another way to spend $
Shahul
Esteemed Contributor

Re: CDE Menu


Hi

The original file is /usr/dt/config/C/sys.dtwmrc. Make ur customizations here. Before doing please keep a backup copy of this.

U can do personal customisations in $HOME/.dt/sys.dtwmrc file.

Best of luck
Shahul
Alex Glennie
Honored Contributor

Re: CDE Menu

fyi .....

/usr/dt/config/C/sys.dtwmrc should not be editted !

it should also not be a link !

if the file does not exist in /etc/dt/config/C ..... copy it over from the systems defaults of /usr/dt/config/C and make your changes here ! otherwise when you install CDE patches you customisations will be lost if the files are overwritten .

Why ? => CDE resources are loaded in the following manner :

1. CDE checks for users specific customisation first in $HOME/.dt/..... if none have been made it then looks in

2. /etc/dt/........ if none are found here it will then use.

3. /usr/dt/.........

So if it worked and has stopped my advise would be :

check users $HOME/.dt/..... for a dtwmrc file .....
also look in $HOME/.dt/start and errorlogs to see if something is conflicting ?

Did the problem occur after a recent edit of the file ?

dr_dt may be useful (CDE diagnostic tool)

exit out of CDE, mv $HOME/.dt -> $HOME/.dt.orig then log back in ?

Maybe a CDE saved home or current session is overidding your expected settings ?

Sachin Patel
Honored Contributor

Re: CDE Menu

Hi Alex,
We uses nfs for users home directory. And it doesn't work only for these three systems.

I have /etc/dt/config/C/sys.dtwmrc file but still it looks only at /usr/dt/....

I created user who has local home directory and it still looks on /usr/dt/.... then I made a link /usr/dt/... -> /etc/dt/config after that as soon as I restart the workspace manager I do have my menu.
No error on home/.dt after or before changes.

Sachin
Is photography a hobby or another way to spend $
Alex Glennie
Honored Contributor
Solution

Re: CDE Menu

some more thoughts .......

could this be an NFS issue .... does root or a local user experience the same problem wrt a .dtwmrc file in their $HOME dir ?

If so this may shed some light ?

Enable debugging in /usr/dt/bin/Xsession:
put set -x at the beginning of the file

do you see the following ?

+ XDIR=/usr/bin/X11+ DT_BINPATH=/usr/dt/bin +DT_INSTALL_CONFIG=/usr/dt/config +DT_CONFIG=/etc/dt/config
+DT_CONFIG_PATH=/etc/dt/config /usr/dt/config

also what shell are you using
Shannon Petry
Honored Contributor

Re: CDE Menu

Here are a few other things to try.
1. remove /var/dt/hostname*
and restart CDE.
/sbin/init.d/dtlogin.rc stop
/sbin/init.d/dtlogin.rc start

After restart look at /var/dt/Xerrors and see if there are problems with CDE startup.

make sure permissions are correct on the file.
-rw-r--r-- bin bin blah blah sys.dtwmrc
The wrong permissions will make the file unreadable.

Also this file should live in /etc/dt, and NOT /usr/dt Move it from usr if it's there, and DONT make a link. If you have it in two places, and one is a link, I am not sure if it will be processed correctly. The /usr/dt directory will over-ride the /etc/dt directory files, which may be part of your problem.

If your file is under /usr/dt or linked to there, move it to /etc/dt, or remove the link.
chmod 644 sys.dtwmrc
chown bin:bin sys.dtwmrc
rm -f /var/dt/hostname*
/sbin/init.d/dtlogin.rc stop
/sbin/init.d/dtlogin.rc start

Regards,
Shannon
Microsoft. When do you want a virus today?
Alex Glennie
Honored Contributor

Re: CDE Menu

I agree with some of Shannon's suggestions BUT

From CDE Advanced Users and System Administrators guide. Chpt 14 Pg 242

"The workspace manager gets its info about window menus, workspace menus,button bindings and key bindings from a configuration file.

It uses one of the following files :

Personal file:HomeDirectory/.dt/dtwmrc
System custom file:/etc/dt/config/Language/sys.dtwmrc
Buil -in file: /usr/dt/config/languagr/sys.dtwmrc

The Workspace Manager searches for a configuration file in the order shown above and uses the first one it finds."
Sachin Patel
Honored Contributor

Re: CDE Menu

Hi Alex,
Users whose home are on nfs directory has problem. root has problem. User who has local home has a problem.

Somehow I am getting menu from /usr/dt/config/C/sys.dtwmrc but not from /etc/.... I do have sys.dtwmrc in /etc/ and I want that menu. It worked before.

I check /usr/dt/bin/Xsession file only one difference I found
DT_CONFIG_PATH = /usr/dt/config /etc/dt/config. I changed the order but no effect.
I am using csh for all user and sh for root.

Hi Shannon,
I remove /var/dt/Ahostname*, stop and start dtlogin no effect. My permissions are OK.

Only solution is to make a link in /usr/dt/config/C/sy* -> /etc/dt/config/C/sys*
And as all of you mention it is not good.

I am confident that I can solve this problem using your help. I am felling good that I am going in right direction.

Thanks
Is photography a hobby or another way to spend $