This is an old revision of the document!


dCore sce-ondemand Command

The sce-ondemand command is used to manage OnDemand SCE(s). Adding an SCE to OnDemand creates an application entry in the (supported) Window Manager's OnDemand menu and also creates a script in /etc/sysconfig/tcedir/ondemand/ containing:

ondemand -e <EXTENSION>

This command loads and launches the SCE through a desktop file, found in /usr/local/share/applications/, or by directly issuing exec. A pop-up message indicating 'Neither freedesktop file nor App executable exists. Please invoke from terminal or menu' when attempting to launch an OnDemand extension usually means the application does not have a desktop file and is meant to be executed from command line.

The contents of the OnDemand script may be manually modified to fix application launch issues or customize functionality. For example, this modified qpdfview OnDemand script ensures newly opened PDF documents open in tabbed mode:

#!/bin/sh
#ondemand -e qpdfview.sce
sce-load qpdfview && qpdfview --unique

If creating SCEs from list files (see sce-import -l command) it may be easiest to name the list file, and subsequent created SCE name, after the main executable to ensure it launches properly from an OnDemand menu.

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.

> Return to the dCore Wiki Welcome page

Print/export
QR Code
QR Code dcore:sce-ondemand_command (generated for current page)