https://bugs.kde.org/show_bug.cgi?id=528898
Bug ID: 528898
Summary: KTerminalLauncherJob: --noclose/-hold are injected
based on the exec name, breaking terminal wrappers and
close-on-success behavior
Classification: Frameworks and Libraries
Product: frameworks-kio
Version First unspecified
Reported In:
Platform: Arch Linux
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
## `--noclose`/`-hold` are added based on the exec name
**Location:** the same `determineFullCommand()`:
```cpp
if (exec == QLatin1String("konsole")) {
exec += QLatin1String(" --noclose");
} else if (exec == QLatin1String("xterm")) {
exec += QLatin1String(" -hold");
}
```
The decision is made based on the exec string rather than on the capabilities
of the actual terminal.
Two consequences:
1. **Breaks wrappers/shims.** `~/.local/bin/konsole -> alacritty`
(a popular way to tame hardcoded konsole usage in third-party
applications) receives `--noclose`, which alacritty does not know:
alacritty hangs for ~3 seconds and then crashes —
“the terminal does not start”. The only fix is to remove the
shim and configure it via `kdeglobals:
[General] TerminalService=Alacritty.desktop`.
2. **Breaks the “close on success” semantics.** `--noclose` unconditionally
keeps the window open after the
child process exits,
so for konsole any “keep open”/“close on success”
checkboxes in apps, using `KTerminalLauncherJob`, have no effect — the window
always
remains open.
#### STEPS TO REPRODUCE:
1. Select `konsole` to default terminal.
2. Create symlink `~/.local/bin/konsole -> alacritty`.
3. Open terminal with `KTerminalLauncherJob` (for example, in Dolphin).
4. The terminal will attempt to open for 3 seconds, and then quietly die.
--
You are receiving this mail because:
You are watching all bug changes.