Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:iconmenuinfo [2011/05/10 12:54] – cosmin_ap | wiki:iconmenuinfo [2015/08/18 22:44] (current) – [Menu Entries and Icons] opera10 gordon64 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
====== Menu entries, icons, setup scripts, .info and .dep files ====== | ====== Menu entries, icons, setup scripts, .info and .dep files ====== | ||
Line 5: | Line 4: | ||
- | ===== Menu entries | + | ===== Menu Entries and Icons===== |
- | These are added to the submenu " | + | Menu Entries and Icons are provided |
+ | ^/ | ||
+ | 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) | ||
- | /usr/local/share/applications | + | A deskop file must begin with |
+ | ^[Desktop Entry]^ | ||
+ | For the full specifications see [[http://standards.freedesktop.org/desktop-entry-spec/latest/]] | ||
+ | | ||
+ | These are added to the submenu " | ||
+ | ^Name=^ | ||
+ | followed, on the same line, by the name you want to appear in the menu. | ||
+ | Note: The default wbar setup provided in TinyCore 4.1 will not keep any spaces in the the value of " | ||
- | directory provided by the extension. | + | You'll also need this line: |
- | + | ^Exec=^ | |
- | ===== Icons ===== | + | followed, on the same line, by the executable |
- | Icons are shown in the bar, in the bottom of the screen. They are added to the right side. | + | |
- | + | ||
- | The icon should | + | |
+ | ===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=^ | ^X-FullPathIcon=^ | ||
+ | followed, on the same line, by the absolute path to the icon you want to be displayed. | ||
- | field. | + | Please note, that X-FullPathIcon= |
+ | The icon should be a 48x48 PNG, and the preferred location for storing icons is | ||
^/ | ^/ | ||
- | |||
For example icon for Opera10 defined as | For example icon for Opera10 defined as | ||
- | |||
^/ | ^/ | ||
- | Please note, that X-FullPathIcon= | + | so for opera, example line becomes |
+ | |||
+ | ^X-FullPathIcon=/ | ||
Line 33: | Line 42: | ||
When an extension is loaded, an executable file of the same name as the extension in **/ | When an extension is loaded, an executable file of the same name as the extension in **/ | ||
- | For details see [[http:// | + | For details see [[http:// |
===== .info files ===== | ===== .info files ===== | ||
- | They are named like the extension, with .info added, for example kmaps.tce.info. Use all parts, even if your extension does not match; in that case, put n/a for example to the unneeded field. Please do not forget a proper description of your software! | + | They are named like the extension, with .info added, for example kmaps.tce.info. Use all parts, even if your extension does not match; in that case, put n/a for example to the unneeded field. Please do not forget a proper description of your software! |
- | + | ||
- | http:// | + | |
+ | [[http:// | ||
+ | At Tiny Core version 5, .info files should include 12 sections: | ||
+ | -Title | ||
+ | -Description | ||
+ | -Version | ||
+ | -Author | ||
+ | -Original-site | ||
+ | -Copying-policy | ||
+ | -Size | ||
+ | -Extension-by | ||
+ | -Tags | ||
+ | -Comments | ||
+ | -Change-log | ||
+ | -Current | ||
===== .dep files: dependency handling ===== | ===== .dep files: dependency handling ===== | ||
- | Tinycore | + | Tiny Core handles dependencies only when using '' |
+ | |||
+ | The dependency file is named by appending .dep to the extension | ||
- | For dependencies, | + | Dependency lists are recursively resolved |
- | The format is one extension per line with **no empty lines**. For example, an extension.tcz.dep might have: | + | The list file format is one extension per line with //no empty lines//. For example, an extension.tcz.dep might have: |
- | ^a.tcz | + | < |
- | b.tcz^ | + | b.tcz</ |
- | where a.tcz.dep might contain | + | where a.tcz.dep might contain |
- | ^c.tcz^ | + | < |
+ | Please see also [[wiki: |