LGUG2Z/komorebi · error

this command requires applications to be identified by their

Error message

this command requires applications to be identified by their exe

What it means

A guard in komorebic's command dispatch: subcommands such as RemoveTitleBar (and other rules targeting specific windows) only accept ApplicationIdentifier::Exe; when the caller supplies a different identifier (e.g. title or class), this error fires because those operations rely on matching process executables.

Source

Thrown at komorebic/src/main.rs:3135

            ))?;
        }
        SubCommand::IdentifyTrayApplication(target) => {
            send_message(&SocketMessage::IdentifyTrayApplication(
                target.identifier,
                target.id,
            ))?;
        }
        SubCommand::IdentifyLayeredApplication(target) => {
            send_message(&SocketMessage::IdentifyLayeredApplication(
                target.identifier,
                target.id,
            ))?;
        }
        SubCommand::RemoveTitleBar(target) => {
            match target.identifier {
                ApplicationIdentifier::Exe => {}
                _ => {
                    bail!("this command requires applications to be identified by their exe");
                }
            }

            send_message(&SocketMessage::RemoveTitleBar(target.identifier, target.id))?;
        }
        SubCommand::ToggleTitleBars => {
            send_message(&SocketMessage::ToggleTitleBars)?;
        }
        SubCommand::Manage => {
            send_message(&SocketMessage::ManageFocusedWindow)?;
        }
        SubCommand::Unmanage => {
            send_message(&SocketMessage::UnmanageFocusedWindow)?;
        }
        SubCommand::QuickSaveResize => {
            send_message(&SocketMessage::QuickSave)?;
        }
        SubCommand::QuickLoadResize => {

View on GitHub (pinned to e0709f02bf)

Solutions

  1. Re-run the command with the EXE identifier, e.g. `komorebic remove-title-bar exe <path-to-exe>` instead of a title or class identifier
  2. Use `komorebic query windows` or task manager to determine the target process's exe name
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at komorebic/src/main.rs:3135 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of LGUG2Z/komorebi@e0709f02bf (2026-09-06). Data as JSON: /api/errors/49339ae5b8effe6c. Report an issue: GitHub.