webstation-broker
DeveloperPython referenceemulators

emulators.desktop

Administration session that launches the full webstation desktop.

Administration session that launches the full webstation desktop.

Brings up selkies-desktop so the user can configure emulators through the GUI. Managed like any emulator session, just with no ROM and no save sync.

Where selkies has the session mode API, it runs the shell and the broker switches it on and off. Elsewhere the broker starts the shell itself.

Teardown is the one place it is not like the others. The shell starts each app with a double fork, so ending the session has to find those apps by the environment they inherited rather than by the process tree they are no longer in (see leave_desktop and Desktop.stop).

attributelog
= logging.getLogger(__name__)
attributeSTOP_WAIT
= float(os.environ.get('DESKTOP_STOP_WAIT', '15'))

Seconds a desktop teardown waits on SIGTERM, from DESKTOP_STOP_WAIT (default 15).