Bug 453265 - Exit non-zero if not closed by clicking "OK" button
Summary: Exit non-zero if not closed by clicking "OK" button
Status: CONFIRMED
Alias: None
Product: kcolorchooser
Classification: Applications
Component: general (other bugs)
Version First Reported In: 22.04.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-01 16:28 UTC by witchhunter
Modified: 2025-09-16 20:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.