The file name is: .apps
as it starts with point it will be hidden.
The file should be searched in the folowing order:
If not found an error occurs
The text file can have two types of definitions: a parameter definition a menu definition. Both use a common command sintaxe:command par_1;par_2;...;par_n
The starter should read the command in a case insensitive way.
Sintaxe for the parameter definition:
parameter_name val_1;value_2;...;val_nSintaxe for the menu definition:Standard Parameters
Example
- Position x;y
Defines the position x,y in the screen where the starter should be placed.- IconDir dir
Directory where you store the icons. This is the place the starter searches the icons.
IconDir /opt/icons
Position 0;70To start a menu definition type the command:
The MAIN menu.
Menu id;description;icon;type
Where:
- id is the identifier for this menu
- description is the text description
- icon is the name of the icon file stored in IconDir
- type can be: IconsOnly, TextOnly or IconsAndText depending on what do you want do show in that menu. Text refers to the description
To end type:
EndIn beetween you define the menu with the following commands:
Text text
Writes text in the list. Used as a headerImage image
Draw the image in the list. Used as a headerSeparator
Writes a line separatorProgram description;icon;command
A program entry. Description is the text describing the program (the name). Icon is the icon and command is the command to execute when the user starts the program.SubMenu menu_id
Pops up the menu menu_id as defined by the id field.
Examples
Menu Main;Linux Power;apps-main.xpm;IconsAndText
Program Terminal;mini-term.xpm;xterm -sl 500
Program Editor;mini-edit.xpm;nedit
Program File Manager;mini-filemgr.xpm;fr
Program Manual;mini-book1.xpm;xman
Separator
SubMenu Office
SubMenu Graph
SubMenu Prog
SubMenu Internet
SubMenu DataBase
Separator
SubMenu Programming
Separator
EndMenu Graph;Graphics;mini-graph.xpm;IconsOnly
Program ;XV.xpm;xv
Program ;wilbur.xpm;gimp
Program ;Paint.xpm;xpaint
Program ;pixmap.xpm;xbmbrowser
EndMenu Data;Data Files;;TextOnly
Text QStart Data
Program .apps at HOME;;myeditor ~/.apps
Program .apps at /usr/local;;myeditor ~/.apps
Separator
Text SHELL
Program Bash Profile;;myeditor ~/.bash_profile
Separator
Text Fvwm2
Program Resource file;;myeditor ~/.fvwm2rc
Separator
Text Personal
Program TODO List;;myedit ~/.todo.list
Program Telephones;;myeditor ~/.telephones.list
Program E-Mails;;myeditor ~/.email.list
EndYou must define a Menu with the id=Main. This is the startup menu.