Deteksi aplikasi terminal (CLI/TUI) + perbaikan shortcut lazydocker
- internal/shortcut/terminal.go: RunsInTerminal() menebak dari library dinamis
(tanpa lib GUI = aplikasi terminal); script selalu true, .exe wine false
- checkbox 'Run in a terminal window' kini muncul untuk semua executable, bukan
hanya script, dan terisi otomatis saat berkas dipilih
- dialog edit: kalau entri lama belum menyalakan Terminal padahal aplikasinya
CLI/TUI, muncul catatan kecil sebagai petunjuk
- tes: script/.exe/binary CLI (test binary)/binary GUI (helium)/lazydocker nyata
- kasus nyata: lazydocker & docker-dash terpasang Terminal=false -> TUI gagal
('open /dev/tty: no such device or address'); dengan Terminal=true TUI jalan
This commit is contained in:
1 parent
35e83dba09
commit
63869e9158
7 files changed
+180
-18
No files matched your search
@@ -30,6 +30,10 @@ breathes while the app is open (the koala in `assets/logo.svg` is the mascot).*
|
||||
|
||||
- **Executable shortcut** — picks an ELF/AppImage/script/Windows `.exe`, copies it to
|
||||
`~/.local/bin/`, installs the icon, writes the `.desktop` entry.
|
||||
- **Terminal apps just work** — CLI/TUI programs (lazydocker, htop, a script) need
|
||||
`Terminal=true`, while GUI apps must not open a terminal. LazyRun guesses this from
|
||||
the libraries the binary links (no GUI library → terminal app), pre-fills the
|
||||
*Run in a terminal window* checkbox, and keeps it editable.
|
||||
- **Automatic type label** — every shortcut is tagged with what it actually is,
|
||||
detected from the file: `Go`, `AppImage`, `Electron`, `Script`, `Windows`, `Binary`
|
||||
(`.exe` files are launched through `wine`), or `PWA` for web apps.
|
||||
|
||||
Reference in new issue
Block a user