diff --git a/CHANGELOG.md b/CHANGELOG.md index ed2abb5..6b418dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [0.9.1] - 2026-03-01 + +### Fixed +- Shortcut and desktop integration wizards are now offered regardless of whether the user chose the interactive wizard or the default config on first run; previously they were only offered in the wizard path + ## [0.9.0] - 2026-03-01 ### Added diff --git a/Cargo.lock b/Cargo.lock index a38cd7c..3480296 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -857,7 +857,7 @@ dependencies = [ [[package]] name = "tmuxido" -version = "0.9.0" +version = "0.9.1" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index c1bb2f5..875d2f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tmuxido" -version = "0.9.0" +version = "0.9.1" edition = "2024" [dev-dependencies] diff --git a/src/config.rs b/src/config.rs index b8c5166..a28398c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -107,6 +107,14 @@ impl Config { Self::run_wizard(&config_path)?; } } + + // Offer shortcut and desktop integration regardless of setup mode + if let Err(e) = crate::shortcut::setup_shortcut_wizard() { + eprintln!("Warning: shortcut setup failed: {}", e); + } + if let Err(e) = crate::shortcut::setup_desktop_integration_wizard() { + eprintln!("Warning: desktop integration failed: {}", e); + } } Ok(config_path) @@ -147,19 +155,7 @@ impl Config { let toml_string = toml::to_string_pretty(&config).context("Failed to serialize config")?; fs::write(config_path, toml_string) - .with_context(|| format!("Failed to write config file: {}", config_path.display()))?; - - // Offer to set up a keyboard shortcut (best-effort, non-fatal) - if let Err(e) = crate::shortcut::setup_shortcut_wizard() { - eprintln!("Warning: shortcut setup failed: {}", e); - } - - // Offer to install .desktop entry + icon (best-effort, non-fatal) - if let Err(e) = crate::shortcut::setup_desktop_integration_wizard() { - eprintln!("Warning: desktop integration failed: {}", e); - } - - Ok(()) + .with_context(|| format!("Failed to write config file: {}", config_path.display())) } fn prompt_for_paths() -> Result> {