1.7 Software Compilation / Installation / Environment Setup
1.7.1 CDE Workspace Menu
Example: adding the Menu Item
Applications2 to the Workspace Menu under the existing item Applications.
create the directory /usr/dt/config/C/wsmenu/Applications2
create a file /usr/dt/config/C/wsmenu/Applications2/XYZ for each program item that should be listed under the Applications2 menu. XYZ is the filename, e.g. xmms for the XMMS MP3 player.
edit file /usr/dt/config/C/sys.dtwmrc
under
Workspace Menu, add
"Applications 2" f.menu Applications2Menu
add the following section:
Menu Applications2Menu { "Applications 2" f.title "SUN PCi II" f.action sunpci no-label f.separator "XMMS MP3 Player" f.action xmms }
edit /usr/dt/appconfig/types/C/dt.dt
for each program item, add the following ACTION block and modify it accordingly:
ACTION xmms { LABEL XMMS MP3 Player ICON SDtGears ARG_COUNT 0 TYPE COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING /usr/local/bin/xmms DESCRIPTION XMMS MP3 Player }
Finally, restart the workspace manager.
|