If the change is system-wide, log in as root.
Create an action for the new text editor or terminal emulator application.
You can use the Create Action application. Figure 4-3 shows a Create Action window filled in for an application named TextPad. For more information about Create Action, see Chapter 11, Creating Actions and Data Types Using Create Action.
Or, you can create the action definition manually; for example:.
ACTION TextPad { LABEL TextPad TYPE COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING /usr/TP/bin/TextPad %(File)Arg_1% DESCRIPTION Double-click this icon to start the \ TextPad application. }
For information on creating action definitions manually, see Chapter 12, Creating Actions Manually.
Place the configuration file containing the new action in the proper directory:
System-wide: /etc/dt/appconfig/types/language
Personal: HomeDirectory/.dt/types
If it doesn't already exist, create the appropriate user-prefs.dt file by copying /usr/dt/appconfig/types/language/user-prefs.dt to:
System-wide: the /etc/dt/appconfig/types/language directory
Personal: the HomeDirectory/.dt/types directory
Edit the TextEditor or Terminal action in the system-wide or personal user-prefs.dt file. Modify the MAP_ACTION
line to map the action to the new action.
For example, change the line:
MAP_ACTION Dtpad
to:
MAP_ACTION TxtPd
Save the user-prefs.dt file.
Double-click Reload Actions in the Desktop_Tools application group to reload the actions database.