Skip to main content

run_command

Function run_command 

Source
pub fn run_command(
    engine: &Engine,
    name: &str,
    once: RunOnce<'_>,
    display: &Display,
    seccomp: Option<&Path>,
) -> EngineCommand
Expand description

The command that opens a window: once run as the container name, given the one socket of display, a runtime folder of its own, the graphics device when there is one, the shared memory a browser engine needs, and the program QCode’s own opener as its browser; and, for the engine that needs one, the seccomp profile at seccomp.

Both windows QCode opens are started here — a workspace’s and the profile wizard’s sign-in — so that neither can be given one option less than the other: a window that misses the socket or the variables naming it never comes up, and one that misses BROWSER cannot sign in.