From 0e2745acf1741cbcc9fa6bed36548a7d0bbc700b Mon Sep 17 00:00:00 2001 From: cinco euzebio Date: Sun, 1 Mar 2026 19:42:12 -0300 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20rename=20--cre?= =?UTF-8?q?ate-desktop-shortcut=20to=20--setup-desktop-shortcut?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- README.md | 2 +- src/main.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 590b21f..aeb944a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - GNOME: registers a custom keybinding via `gsettings` - KDE: appends a `[tmuxido]` section to `~/.config/kglobalshortcutsrc` - Conflict detection per DE (Hyprland via `hyprctl binds -j`, KDE via config file, GNOME via gsettings); suggests next free combo from a fallback list -- `--create-desktop-shortcut` flag to (re-)install the `.desktop` entry and icon at any time +- `--setup-desktop-shortcut` flag to (re-)install the `.desktop` entry and icon at any time - `shortcut` module (`src/shortcut.rs`) with full unit and integration test coverage - Icon and `.desktop` file installed by `install.sh` and offered in the first-run wizard diff --git a/README.md b/README.md index 26a020a..523fabf 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ tmuxido --setup-shortcut Install the `.desktop` entry and icon (so tmuxido appears in app launchers like Walker/Rofi): ```bash -tmuxido --create-desktop-shortcut +tmuxido --setup-desktop-shortcut ``` Both are also offered automatically on first run. Re-run them any time to reconfigure. diff --git a/src/main.rs b/src/main.rs index d97c354..d10bd8f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,7 +40,7 @@ struct Args { /// Install the .desktop entry and icon for app launcher integration #[arg(long)] - create_desktop_shortcut: bool, + setup_desktop_shortcut: bool, } fn main() -> Result<()> { @@ -57,7 +57,7 @@ fn main() -> Result<()> { } // Handle standalone desktop integration setup - if args.create_desktop_shortcut { + if args.setup_desktop_shortcut { return setup_desktop_integration_wizard(); }