This is an old revision of the document!
dCore sce-ondemand Command
The sce-ondemand command is used to manage ondemand SCE(s).
Process:
- Adding an SCE to ondemand:
- creates updates the Window Manager's 'ondemand' menu
- adds a file in /etc/sysconfig/tcedir/ondemand/ containing the commands to be executed. The standard content is:
ondemand -e <EXTENSION>
but this may be changed at will. The main effects of this command are that the respective extension is loaded and launched, either through a '.desktop'-file it provides under '/usr/{local/}share/applications/' or else directly by issueing exec
.
The menu entry corresponds to the name of the file under 'tce/ondemand/' which also may be changed at will. The ondemand command uses these file names with options -c, -r
, and extension names with options -l, -e
. When changing the file name under 'tce/ondemand/', the extension will be listed as available for ondemand.
Trouble-shooting
If the launching of an ondemand item is answered by a message like: “Neither freedesktop file nor App executable exists. Please invoke from terminal or menu.” then one should adapt the content of the ondemand file. According to the behavior of the ondemand -e
statement, the following may serve as reference.
sce-load <EXTENSION> exec <APPLICATION>
This may be necessary, for instance, if the ondemand item is created for an extension built after a list of packages and the name of the list does not correspond to the executable. To avoid such hassle it seems advisable to generally name extension list after their main executable.
Usage options from the 'sce-ondemand –help' command:
sce-ondemand - Manage ondemand SCE(s). Adding an SCE to ondemand creates a script in /tce/ondemand and updates the Window Manager's ondemand menu, which provides a convenient way to load less frequently used SCE(s) after boot. Usage: sce-ondemand SCE Add SCE to ondemand, update menus. sce-ondemand -c Display current ondemand SCE(s). sce-ondemand -e SCE Load and execute any SCE, do not add to ondemand. sce-ondemand -l List available SCE(s) to add to ondemand, those not yet in sceboot.lst or ondemand. sce-ondemand -r SCE Remove SCE from ondemand, update menus.