LGUG2Z/komorebi · error · ErrorKind::NotFound
PowerShell session not started
Error message
PowerShell session not started
What it means
Sentinel error from komorebi-bar's exec_powershell: the persistent PowerShell session (whose stdin is stored in SESSION_STDIN) was never started, so commands cannot be written to it. Fires when the bar's PowerShell child process failed to spawn or was not initialized before execute() attempted to send it a command.
Source
Thrown at komorebi-bar/src/bar.rs:145
Ok(())
}
pub fn exec_powershell(cmd: &str) -> eyre::Result<()> {
if let Some(session_stdin) = SESSION_STDIN.lock().as_mut() {
if let Err(e) = writeln!(session_stdin, "{cmd}") {
tracing::error!(error = %e, cmd = cmd, "failed to write command to PowerShell stdin");
return Err(e.into());
}
if let Err(e) = session_stdin.flush() {
tracing::error!(error = %e, "failed to flush PowerShell stdin");
return Err(e.into());
}
return Ok(());
}
Err(Error::new(ErrorKind::NotFound, "PowerShell session not started").into())
}
pub struct Komobar {
pub hwnd: Option<isize>,
pub monitor_index: Option<usize>,
pub disabled: bool,
pub config: KomobarConfig,
pub render_config: Rc<RefCell<RenderConfig>>,
pub monitor_info: Option<Rc<RefCell<MonitorInfo>>>,
pub left_widgets: Vec<Box<dyn BarWidget>>,
pub center_widgets: Vec<Box<dyn BarWidget>>,
pub right_widgets: Vec<Box<dyn BarWidget>>,
pub rx_gui: Receiver<KomorebiEvent>,
pub rx_config: Receiver<KomobarConfig>,
pub bg_color: Rc<RefCell<Color32>>,
pub bg_color_with_alpha: Rc<RefCell<Color32>>,
pub scale_factor: f32,
pub size_rect: komorebi_client::Rect,View on GitHub (pinned to e0709f02bf)
Solutions
- Check komorebi-bar startup logs for why the PowerShell session failed to spawn (e.g. powershell.exe not on PATH)
- Restart komorebi-bar so the session is initialized before commands are issued
- Ensure the PowerShell executable is available and not blocked by security policy
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at komorebi-bar/src/bar.rs:145 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/6e9040b1e81df4b8.
Report an issue: GitHub.