Bug 453265

Summary: Exit non-zero if not closed by clicking "OK" button
Product: [Applications] kcolorchooser Reporter: witchhunter <witchhunterpro>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: 4wy78uwh, nate
Priority: NOR    
Version First Reported In: 22.04.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description witchhunter 2022-05-01 16:28:31 UTC
SUMMARY
Run from terminal:
kcolorchooser --color '#111111' --print

User can press OK, Cancel, Esc or X on titlebar to exit the app.
Kcolorchooser  will always return exit code zero. 
Now, if the user changes the color and press e.g. Cancel, changed color will still be printed to output, so there is no way to know for certain whether a user has aborted the app.

OBSERVED RESULT
No information is provided to know for certain whether a user has aborted the app.

EXPECTED RESULT
There should be the way to know for certain whether a user has aborted the app.

SOFTWARE/OS VERSIONS
Operating System: KDE neon Testing Edition, VM
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-40-generic (64-bit)
Graphics Platform: X11
Comment 1 Nate Graham 2025-09-10 06:53:06 UTC
Can you describe why this would be important? What's the surrounding context that would make that information useful to have?
Comment 2 witchhunter 2025-09-10 15:45:49 UTC
(In reply to Nate Graham from comment #1)
Kcolorchooser is a native KDE app which can be used in BASH scripts to present nice GUI interface. Of course, there is also the matter of general consistency for user abort, and at the present state, user cannot get the proper response.
But if kcolorchooser is stepping down for the sake of "Color Picker" plasma widget, as one might take from your action on bug https://bugs.kde.org/show_bug.cgi?id=442971, then this can closed as well, ofc.