pub enum LaunchOutcome {
Spawned,
NotInstalled,
Failed,
}Expand description
What became of one attempt to show the menu.
Variants§
Spawned
The popup ran to completion (chosen, cancelled, or closed some
other way) and, if it chose something, that action has already
been sent to events.
NotInstalled
hyprforge-traymenu is not on $PATH — the sibling-binary-absent
case CLAUDE.md is explicit a daemon must survive: keep running,
keep every other icon, and let the caller fall back to something
rather than silently doing nothing. sni.rs::context_menu is the
caller, and its fallback is the primary action — the same one a
left click already runs.
Failed
The menu couldn’t be serialised, the child couldn’t be waited on,
or its stdin couldn’t be written. Rare, and not distinguished
further: every one of them means no popup appeared, so the same
fallback the caller uses for NotInstalled applies here too.