This is an old revision of the document!
Menu Entries and Icons
Menu Entries and Icons are provided by a .desktop file stored at
/usr/local/share/applications |
---|
The .desktop file must have the same base name as the application package. (e.g. the desktop file for homebank.tcz must be named homebank.desktop)
Menu Entries
These are added to the submenu “Applications”, which is empty by default. Entries are created automatically by the system at the time the extension is loaded. In order to have a menu entry the .desktop file needs, at the least, these two lines
Name= |
---|
followed, on the same line, by the name you want to appear in the menu, and
Exec= |
---|
followed, on the same line, by the executable to be run when the item is clicked.
Icons
Icons are shown in the wbar, which can be positioned on any edge of the screen (bottom by default). In order to have an icon you will need the things mentioned above as well as
X-FullPathIcon= |
---|
followed, on the same line, by the absolute path to the icon you want to be displayed. Please note, that X-FullPathIcon= field is not part of the .desktop file provided by applications; it is TC specific and must be added by the extension creator. The icon should be a 48×48 PNG, and the preferred location for storing icons is
/usr/local/share/pixmaps/ |
---|
For example icon for Opera10 defined as
/usr/local/share/pixmaps/opera10.png |
---|