Adding and Administering ApplicationsApplication ManagerdescriptionApplication Manager is the desktop container for applications available to the
user.Structure of Application ManagerThe top level of Application Manager generally contains directories. Each of
these directories, and its contents, is called anapplication groupsdefinitionapplication group.Application groups in Application ManagerThe application groups and their contents are gathered from multiple locations
locally and throughout the network.Directory Location of Application ManagerApplication Managerfile system locationIn the file system, Application Manager is the directory
/var/dt/appconfig/appmanager/login-hostname-display. The directory is
created dynamically each time the user logs in.For example, if user ronv logs in from display wxyz:0, the Application
Manager directory /var/dt/appconfig/appmanager/ronv-wxyz-0 is
created.How Application Manager Finds and Gathers Applicationsapplicationsgathering into Application ManagerApplication Managergathering applicationsapplication groupsgatheringApplication Manager is built by gathering local and remote application groups.
The application groups are gathered from directories located along theapplication search pathused to gather applications
application search path.The default application search path consists of these locations:applicationssearch pathsearch pathsapplicationsScopeLocationBuilt-in/usr/dt/appconfig/appmanager/languageSystem-wide/etc/dt/appconfig/appmanager/languagePersonalHomeDirectory/.dt/appmanagerTo create the top level of Application Manager, links are created at login time
from the application groups (directories) located in directories on the
application search path to the Application Manager directory
/var/dt/appconfig/appmanager/login-hostname-display. The gathering
operation is done by the desktop utility
dtappgather, which is automatically
run by Login Manager after the user has successfully logged in.dtappgatherFor example, the desktop provides the built-in application group:/usr/dt/appconfig/appmanager/language/Desktop_ToolsAt login time, aApplication Managersymbolic links
symbolic link is created to:/var/dt/appconfig/appmanager/login-hostname-display/Desktop_ToolsThe application search path can include remote directories. This provides a
way to gather application groups from systems located throughout the
network. For more information, see
.Precedence Rules in Gathering ApplicationsApplication Managerprecedence rulesapplication groupsprecedenceWhere duplicates exist along the search path, personal application groups have
precedence over system-wide groups, and system-wide groups have
precedence over built-in groups. For example, if both
/usr/dt/appconfig/appmanager/C/Desktop_Tools and
/etc/dt/appconfig/appmanager/C/Desktop_Tools exist, the
application group under /etc will be the one used.Application Groups Provided with the Default Desktopapplication groupsdefaultThe uncustomized desktop provides four application groups.Desktop_AppsDesktop_ToolsInformationSystem_AdminExample of How Application Groups Are Gatheredapplicationsgathering shows an Application Manager window containing a variety of
application groups.
shows the directories from which the application
groups were gathered.A typical Application Manager window
Source of Application Groups for
NameDirectory GatheredCAD_App/net/ApServA/etc/dt/appconfig/appmanager/C/CAD_AppDrawingApp/etc/dt/appconfig/appmanager/C/DrawingAppDesktop_Apps/usr/dt/appconfig/appmanager/C/Desktop_AppsDesktop_Tools/usr/dt/appconfig/appmanager/C/Desktop_ToolsInformation/usr/dt/appconfig/appmanager/C/InformationSystem_Admin/etc/dt/appconfig/appmanager/C/System_AdminMySpreadSheet/users/anna/.dt/appmanager/MySpreadSheetMedia_Tools/etc/dt/appconfig/appmanager/C/Media_Tools
If the Information or System_Admin application groups have been customized,
they will be gathered from /etc/dt/appconfig/appmanager/C instead.The CAD_App group is gathered because a system named ApServA has been
added to the application search path (see
). MySpreadSheet is a personal application
group, available only to user anna.Adding Applications to Application Managerapplicationsadding to Application ManagerApplication Manageradding applicationsWhen an application has been added to Application Manager, there is an icon
in an application group that starts that application.Many applications provide an application group. The application group is a
directory at the top level of Application Manager that contains the application
icon and other files related to the application.Some applications may not have their own application group. Instead, the icon
to start the application is located in a general application group. For example,
you could create an empty application group named “Games” that you use as
a container for all the games you install on the system.Ways to Add Applications to Application Managerapplicationsways to addThere are two ways to add an application to Application Manager:Registering the applicationAdding an application icon without registering the applicationRegistering the ApplicationregistrationdefinitionApplication registration provides full application integration.applicationsregistered, definitionA registered application:Has its own application group.Has its desktop configuration files gathered under a single location. This
group of desktop configuration files is called the registration packageregistration package.May have a registered help volume.There are two ways an application can become registered:When you install a desktop-smart application, registration occurs
automatically. See
.An existing application can be registered by creating a registration package.
See
.The use of a registration package makes the application easier to administer on
the desktop. The registration package is created somewhere in the file system
other than the locations used for desktop configuration files.Adding the Application without Using a Registration Package.This is the preferred way to add application when you want Application
Manager to contain only an icon to start the application.applicationsadding without registeringAn application added without using a registration package:May have its own application group, but usually has its icon placed in an
existing application groupHas its desktop configuration files placed directly in locations along the
desktop's search paths.See
.To Add a Desktop-Smart Application to Application Managerapplicationsdesktop-smartdesktop-smart applicationA desktop-smart application is an application that is automatically registered
into Application Manager when the application is installed. The application's
filesets include the registration package required by the desktop.Install the application using instructions provided with the application.When installation is complete, double-click Reload Applications in the
Desktop_Tools application group.Verify that installation is complete:Open Application Manager and check for the presence of the new
application group.To open the application, open the application group and double-click the
application's icon.To Register an Existing or Non-Desktop Smart ApplicationThis is the preferred way to fully integrate an application into the desktop.The desktop provides a tool, dtappintegrate, that creates links between the
registration package files and the directories on the desktop search path.Desktop registration is explained in
.To Add an Application Icon to an Existing Application GroupThis procedure explains how to add an application icon to an existing
application group.For example, the desktop provides an application group named
System_Admin that has been reserved for various applications and scripts
related to administering systems. If you have a script that users frequently run,
you might want users to be able to run the script by double-clicking an icon in
the System_Admin application group.Use Create Action to create an action definition for the application.For more information about Create Action, see
.Create an executable file with the same name as the action name in the
directory for the application group. The content of the file is irrelevant.For example, if you've created an action named “Cleanup” that runs a
system administration tool, you would create the executable file:
/etc/dt/appconfig/appmanager/language/System_Admin/Cleanup
Creating and Administering General Application Groupsapplication groupsadministeringA general application is an application group (directory) that is not associated
with one particular application product. For example, the built-in
Desktop_Tools application group is a general group containing icons for a
large number of applications that are related, but not part of a single product.You can create additional general application groups. For example, you might
want to create a group called Games to group together the various games
available on the system.A general application group can be system-wide or personal in scope.To Create a System-Wide General Application Groupapplication groupssystem-wideLog in as root.Create a directory in /etc/dt/appconfig/appmanager/language.The name of the directory becomes the name of theapplication groupsnaming
application group.Double-click Reload Applications in the Desktop_Tools application group.To Create a Personal General Application Grouppersonal application groupapplication groupspersonalCreate a directory in HomeDirectory/.dt/appmanager.The name of the directory becomes the name of the application group.Double-click Reload Applications in the Desktop_Tools application group.To Customize a Built-In Application Groupapplication groupscustomizingLog in as root.If the application group is located in
/usr/dt/appconfig/appmanager/language, copy the application group
to /etc/dt/appconfig/appmanager/language.Desktop_Tools application group, modifyingFor example, the following command copies the Desktop_Tools application
group:cp -r /usr/dt/appconfig/appmanager/C/Desktop_Tools /etc/dt/appconfig/appmanager/CThe new copy of the application group will have precedence over the built-
in version.Modify the copy of the application group. For example, you can add new
action files (executable files with the same name as actions).To see the changes, log out and back in.Modifying the Search Path Used To Locate Applicationsapplication search pathreason for modifyingThe major reason for modifying the application search path is to add anapplication serversadding
application server. When you add an application server to the search path,
Application Manager gathers all the server's system-wide application groups.For more information on the application search path, see
.The Default Search Pathapplication search pathdefaultThe default application search path includes these directories:ScopeSearch Path DirectoryPersonalHomeDirectory/.dt/appmanagerSystem-wide/etc/dt/appconfig/appmanager/languageBuilt-in/usr/dt/appconfig/appmanager/languageAdding an Application Server to the Application Search Pathapplication search pathmodifyingIn addition to modifying the application search path, it may be necessary to
perform additional configuration tasks to enable communication with the
application server. See
.To Set a System-Wide Application Search Pathapplication search pathsystem-wideLog in as root.If the file /etc/dt/config/Xsession.d/0010.dtpaths doesn't exist,
create it by copying /usr/dt/config/Xsession.d/0010.dtpaths.Open /etc/dt/Xsession.d/0010.paths for editing. Add or edit a line
setting the DTSPSYSAPPHOSTS variablemodifyingDTSPSYSAPPHOSTS variable:DTSPSYSAPPHOSTS=hostname:[,hostname]For example, the following line adds the system ApServA to the application
search path:DTSPSYSAPPHOSTS=ApServA:Inform all users on the system that they must log out and then log back in
for the change to take effect.To Set a Personal Application Search Pathapplication search pathpersonalOpen HomeDirectory/.dtprofile for editing.Add or edit a line setting the DTSPUSERAPPHOSTS variablemodifyingDTSPUSERAPPHOSTS variable:DTSPUSERAPPHOSTS=hostname:[,hostname]For example, the following line adds the systems ApServB and ApServC to
the application search path:DTSPUSERAPPHOSTS=ApServB:,ApServC:Log out and then log back in.General Application Manager AdministrationApplication Managergeneral administrationGeneral Application Manager administration tasks include:Removing an applicationRereading the database of applications during a sessionTo Remove an Applicationapplicationsun-registeringapplicationsremovingIf an application has been registered using the dtappintegrate tool, you can
also use dtappintegrate to reverse the process. When an application is
unregistered, its application group is removed from Application Manager, and
its actions, data types, icons, and help are no longer available.Log in as root.dtappintegrateremoving applicationRun the command:dtappintegrate -s app_root -uTo Update Application Manager During a SessionApplication ManagerupdatingapplicationsreloadingYou must rebuild Application Manager if you add applications and want those
changes to take effect immediately.Open the Desktop_Tools application group and double-click Reload
Applications.Reload Applications is useful for updating Application Manager when
applications are added to an application server. However,Reload Applications action
Reload Applications
does not detect applications that have been removed from an application
server, or applications that have been moved from one location to another.
These changes take effect when the user logs out and back in.Changing the Text Editor and Terminal Emulatortext editor, changingterminal emulatorchangingBoth the text editor and terminal emulator applications can be started by
choosing a control in the Front Panel, or by double-clicking an icon in
Application Manager.These applications are also started by other desktop activities.The text editor application opens when the user selects a text file in File
Manager and chooses Open from the Selected menu. The default text editor
is dtpad.A terminal emulator runs when a user chooses Open Terminal from File
Manager's File menu, or when an action opens a terminal emulator window.
The default terminal emulator is dtterm.You can configure the desktop to use a different text editor or terminal
emulator application in these situations.To Change the Default Text Editor or Terminal EmulatorIf 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.
shows a Create
Action window filled in for an application named TextPad. For more
information about Create Action, see
.Create Action windowOr, 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
.Place the configuration file containing the new action in the proper
directory:System-wide: /etc/dt/appconfig/types/languagePersonal: HomeDirectory/.dt/typesIf it doesn't already exist, create the appropriate user-prefs.dt file by
copying /usr/dt/appconfig/types/language/user-prefs.dt to:user-prefs.dt fileSystem-wide: the /etc/dt/appconfig/types/language directoryPersonal: the HomeDirectory/.dt/types directoryEdit 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 Dtpadto:MAP_ACTION TextPadSave the user-prefs.dt file.Double-click Reload Actions in the Desktop_Tools application group to
reload the actions database.