DesktopQuitSource enum

Namespace Runic.Desktop in Runic.Desktop 0.23.0

public enum DesktopQuitSource

Where a request to quit the application comes from (DesktopQuitRequest.Source).

Remarks

This set is open: a minor release may add values, so handle unknown ones as DesktopQuitSource.Menu.

Values

Menu = 0

The application's Quit command: on macOS the Quit item of the application menu (Command and Q), or another sender of AppKit's terminate:, such as a status item's Quit.

Dock

Dock = 1

On macOS, Quit in the application's Dock menu, or another application that asks it to quit with the quit Apple event, such as a script.

System

System = 2

On macOS, logging out, restarting or shutting down: the system's quit Apple event, which names that reason.

Signal

Signal = 3

Ctrl+C, SIGTERM, SIGHUP or a closed Windows console, which DesktopEventLoop.Run handles unless DesktopHostOptions.HandleShutdownSignals is false.