SUMMARY When using the KDialog slider function, if the user clicks "OK", the exit code from the process is 1 (which indicates an error) but when clicking "Cancel" the exit code is 0 (which normally indicates successful completion in UNIX). Other functions I've tested - such as the input box function - behave as expected with "OK" producing a 0 exit code, and "Cancel" producing an exit code of 1. STEPS TO REPRODUCE 1. In your terminal run `kdialog --slider "Test" "1" "10" "1" && echo OK || echo Cancel` 2. In the dialog box that pops up, press "OK" OBSERVED RESULT The terminal output says "Cancel" EXPECTED RESULT The terminal output should say "OK" SOFTWARE/OS VERSIONS Operating System: KDE neon Testing Edition KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.2.0 Qt Version: 6.7.0 Kernel Version: 6.5.0-27-generic (64-bit) Graphics Platform: Wayland Processors: 20 × 12th Gen Intel® Core™ i7-12700H Memory: 31.0 GiB of RAM Graphics Processor: Mesa Intel® Graphics
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kdialog/-/merge_requests/39
Fixed in commit bc3eb2d6. https://invent.kde.org/utilities/kdialog/-/commit/bc3eb2d60995c706ed9969b75fee81a90be2a432