以 PDF 格式下载本书 (1326 KB)
Chapter 4 Adding and Administering ApplicationsApplication 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 an application group. Figure 4–1 Application groups in Application Manager
The application groups and their contents are gathered from multiple locations locally and throughout the network. Directory Location of Application ManagerIn 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 ApplicationsApplication Manager is built by gathering local and remote application groups. The application groups are gathered from directories located along the application search path. The default application search path consists of the locations shown in Table 4–1. Table 4–1 Default Application Search Path Locations
To 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. For example, the desktop provides the built-in application group: /usr/dt/appconfig/appmanager/language/Desktop_Tools At login time, a symbolic link is created to: /var/dt/appconfig/appmanager/login-hostname-display/Desktop_Tools The 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 Adding an Application Server to the Application Search Path. Precedence Rules in Gathering ApplicationsWhere 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 DesktopThe uncustomized desktop provides four application groups.
Example of How Application Groups Are GatheredFigure 4–2 shows an Application Manager window containing a variety of application groups. Table 4–2 shows the directories from which the application groups were gathered. Figure 4–2 A Typical Application Manager Window
Table 4–2 Source of Application Groups for a Typical Application Manager Window
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 Adding an Application Server to the Application Search Path). MySpreadSheet is a personal application group, available only to user anna. Adding Applications to Application ManagerWhen 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 ManagerThere are two ways to add an application to Application Manager:
Registering the ApplicationApplication registration provides full application integration.
There are two ways an application can become registered:
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 PackageThis is the preferred way to add application when you want Application Manager to contain only an icon to start the application. An application added without using a registration package:
See To Add an Application Icon to an Existing Application Group. To Add a Desktop-Smart Application to Application ManagerA 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.
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 Chapter 5, Registering an Application. 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.
Creating and Administering General Application GroupsA 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 Group
To Create a Personal General Application Group
To Customize a Built-In Application Group
Modifying the Search Path Used To Locate ApplicationsThe major reason for modifying the application search path is to add an 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 Application Search Path. The Default Search PathThe default application search path includes the directories shown in Table 4–3. Table 4–3 Default Application Search Path Directories
Adding an Application Server to the Application Search PathIn addition to modifying the application search path, you may need to perform additional configuration tasks to enable communication with the application server. See Administering Application Services.
|
|||||||||||||||||||||||||||||||||||||