♻️ refactor: rename --create-desktop-shortcut to --setup-desktop-shortcut
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Cinco Euzebio 2026-03-01 19:42:12 -03:00
parent d7246298b1
commit 0e2745acf1
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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.

View File

@ -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();
}