ApplicationLaunch record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record ApplicationLaunch : IEquatable<ApplicationLaunch>

Inherits or implements IEquatable.

One launch of the application: its arguments, working directory and desktop activation data.

Remarks

Treat a forwarded launch as untrusted input at the application boundary, like command-line arguments.

Constructors

ApplicationLaunch

public ApplicationLaunch(ImmutableArray<string> Arguments, string WorkingDirectory)

One launch of the application: its arguments, working directory and desktop activation data.

Remarks

Treat a forwarded launch as untrusted input at the application boundary, like command-line arguments.

Properties

Arguments

public ImmutableArray<string> Arguments { get; init; }

No documentation.

PlatformContext

public DesktopActivationContext? PlatformContext { get; init; }

Short-lived desktop activation data for raising a window. Dispatch promptly; do not persist it.

Reply

public IApplicationLaunchReply? Reply { get; init; }

The way back to the launching process, on a launch the running instance received from a process that waits for its reply; null for a launch that only hands over its arguments. Complete it once the launch is handled.

Remarks

Not sent when forwarding a launch: the running instance sets it.

WorkingDirectory

public string WorkingDirectory { get; init; }

No documentation.

Methods

FromProcess

public static ApplicationLaunch FromProcess(IEnumerable<string> arguments)

This process's launch: arguments, the current directory, and the activation token or startup ID the desktop passed in XDG_ACTIVATION_TOKEN or DESKTOP_STARTUP_ID.