| Summary: | KDiff3 when launched from CLI detaches from the terminal | ||
|---|---|---|---|
| Product: | [Applications] kdiff3 | Reporter: | Lapo Luchini <lapo> |
| Component: | application | Assignee: | michael <reeves.87> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.12.3 | ||
| Target Milestone: | --- | ||
| Platform: | Microsoft Windows | ||
| OS: | Microsoft Windows | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Lapo Luchini
2025-05-27 13:15:38 UTC
This looks to be default behavior of the windows terminal. Rather annoying if your used to linux which does not default to this behavior. I'll have look but a suspect kdiff3 can't influence this. That said power shell has "Wait-Process" which will hold the script up until a process is finished. As expected this decision is made at the termial/OS level before passing control to kdiff3 or the Qt framework. Microsoft provides the start command for the use case you indicate where the termial must wait for kdiff3 to exit. The fallowing is example syntax for launching kdiff3 with a two way compasrison but having the terminal wait on it. Traditional command shell: start -Wait 'C:\Program Files\KDiff3\bin\kdiff3.exe' C:\CraftRoot\tmp\manifest.json C:\CraftRoot\tmp\manifest-20250503T163525.json PowerShell: start -Wait 'C:\Program Files\KDiff3\bin\kdiff3.exe' -ArgumentList [C:\CraftRoot\tmp\manifest.json, C:\CraftRoot\tmp\manifest-20250503T163525.json] PowerShell may be default in windows 11 but the traditional terminal can also be launched. Thanks for checking and suggestions! I was indeed mixing up behavior on FreeBSD and Linux in my head with Windows. |