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

Conference unxa::cde

Title:CDE on Digital UNIXonment - CDE
Notice:CDE on Digital UNIX - for CDE on VMS, please see Note 1.3
Moderator:UNXA::SYSTEM
Created:Tue Nov 23 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:660
Total number of notes:2674

594.0. "replace dttterm with dxterm" by DECWET::CARRUTHERS (Life gets easier when you realize you can't have everything.) Wed Jan 29 1997 17:56

I understand from the documentation that there is a way to change
the default terminal emulator from dtterm to dxterm.  However,
when I tried to do this (following the manual instruction stuff),
I failed miserably.  

Is there a pointer to more complete, specific instructions on how
to do this?

 
T.RTitleUserPersonal
Name
DateLines
594.1one waySMURF::PBECKPaul BeckThu Jan 30 1997 09:455
    Dunno about pointers, but what I did was rename /usr/dt/bin/dtterm
    to dtterm_save and create a softlink called /usr/dt/bin/dtterm
    pointing to /usr/bin/X11/dxterm. I  haven't been bugged by dtterm
    since (but it's still there if I ever wanted it for some reason).
    
594.2here's one wayUNXA::BEUTENo good deed ever goes unpunished...Thu Jan 30 1997 13:2942
>>I understand from the documentation that there is a way to change
>>the default terminal emulator from dtterm to dxterm.  However,
>>when I tried to do this (following the manual instruction stuff),
>>I failed miserably.  

Aside from Paul's method in .-1, this is the way I would do it, more
within the 'spirit' of CDE. The instructions are simple:
1) create a copy of /usr/dt/appconfig/types/C/dt.dt in $HOME/.dt/types
and rename it to something like dxterm.dt
2) Edit dxterm.dt to remove all but the following block:

ACTION Dtterm
{
        LABEL           Terminal
        ARG_COUNT       0
        ICON            Dtterm
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     /usr/dt/bin/dtterm -ls
        DESCRIPTION     The Terminal (Dtterm) action runs the desktop Terminal \
                        Emulator application.
}

3) Edit this fragment to change the executable from dtterm to /usr/bin/X11/
dxterm, save, and exit. 
4) Logout/log back in again.

At this point, clicking the Terminal icon or using the Open Terminal
option from either the File manager or App manager->File pulldown menus
will launch dxterm.

>>Is there a pointer to more complete, specific instructions on how
>>to do this?

It'd help if you tried to explain the mechanism you tried to use, but
failed. There are a few different techniques you could use, the one
above is just one option.

Chris
 

594.3thanks -- will try againDECWET::CARRUTHERSLife gets easier when you realize you can't have everything.Thu Jan 30 1997 15:4347
Thanks for both .1 and .2.  I will try .2 and then .1 if I get more
desperate.

As for what I had done previously -- I tried to follow the instructions 
in chapter 3, "Changing the Text Editor and Terminal Emulator" in the CDE
Advanced User's and System Administrator's Guide (starts on page 49 on my
copy).   I did this while multiplexing job assignments, so perhaps I did
not read carefully enough.  Basically:

	- I created a file dxterm.dt which had the following:

ACTION Dxterm
{
        LABEL           Terminal
        ARG_COUNT       0
        ICON            Dtterm
        TYPE            COMMAND
        WINDOW_TYPE     NO_STDIO
        EXEC_STRING     /usr/bin/X11/dxterm -ls
        DESCRIPTION     The Terminal (DXterm) action runs the desktop        
                        Terminal Emulator application.
}

	- I placed this in /usr/var/.dt/appconfig/types/C since I wanted
          the change to be universal for the system

	- I then copied user-prefs.dt to /usr/var/.dt/appconfig/types/C,  
          left it intact except for editting it as follows:

# The default term for Common Desktop Environment (CDE) is Dtterm.

ACTION Terminal
{
        LABEL           Terminal
        TYPE            MAP
        MAP_ACTION      Dxterm
        DESCRIPTION     The Terminal action runs the user preferred \
                        terminal emulator.
}


	- Finally I tried to Double-click Reload Actions in the 
          Desktop_Tools application group (no success) and then
          logout/login (still no success).

I did all this because I wanted to do it "right" according to CDE
in case I ever had any other customizations to make.  
594.4bug/feature?UNXA::BEUTENo good deed ever goes unpunished...Fri Jan 31 1997 11:1833
>>I did all this because I wanted to do it "right" according to CDE
>>in case I ever had any other customizations to make.  

OK, thanks for the explanation. It's been a while since I went through
that manual, didn't realize that section was in there, and hadn't tested
it.

Even if you do everything right there, you probably don't wind up with
the total end result you wanted. This is worth a QAR either against
CDE_DOC for the explanation in the manual, or in CDE_ACTIONS for not
allowing the work to be done as documented. That'll require a closer
examination by someone else.

The method described DOES work, but only to a degree. After you do
those steps, if you use the App/File manager File pulldown menu to
launch a terminal ("Open Terminal"), you'll get dxterm. If you use
the command

$/usr/dt/bin/dtaction Terminal

you'll get dxterm. BUT, there are still other actions/icon mappings
which tie the "Dtterm" icon to dtterm. For example, the PUSH_ACTION
record in the front panel record has an action defined of "Dtterm".
If this were changed to "Terminal", it'd launch dxterm.

So, if you really wanted to make that change systemwide, you could
take the action file I suggested in .2 and move it to /etc/dt/appconfig/types/C
and it'll work for all users. The user-prefs.dt file would be unnecessary.

Thanks for spotting the hole, and please QAR it.

Chris
594.5LEXSS1::GINGERRon GingerMon Feb 03 1997 14:237
    I have been trying this as well.
    
    I followed the steps to change the application registration, but it
    still didnt come up on the front pannel. I had to change a .fp file.
    
    Also, when the dxterm starts, I do not get my .profile sourced. How do
    I fix that? I do have DTSOURCEPROFILE = true.
594.6need -ls flag for dxtermUNXA::BEUTENo good deed ever goes unpunished...Mon Feb 03 1997 16:277
    
>>    Also, when the dxterm starts, I do not get my .profile sourced. How do
>>    I fix that? I do have DTSOURCEPROFILE = true.

	Make sure you invoke "dxterm -ls".