I am having trouble getting konsolekalendar to output data from any date, if I don’t specify --all option when writing the command.
That is, I can only get data output if I ask for ALL data output, otherwise, I get no output, no warnings either. Just blank space. Or blank export files.
Some info about my setup:
Debian 13 Trixie
Running on XFCE4
konsolekalendar version: 4:24.12.3-1 (the latest available for debian trixie).
If anyone would like to try to reproduce the bug, try running:
You’ll likely get no output at all. (Or just the [QCommandLineParser: option not defined: “create”] bug)
Already filed a bug report.
The bug surfaced when trying to debug a program (GNUmed) which gets “today’s” calendar info from KOrganizer via konsolekalendar → to a .csv file → which then is read to build the columns for the UI. The .csv files were always empty when generated, then playing that only --all output worked.
I am aware that even if the bug is seen and fixed, it probable won’t get released as an update for Debian stable soon.
I guess I’d just like to know if anyone else has had this problem, and if they found some way around it that did not involve backporting the latest konsolekalendar option.
Of course, if there is no workaround, I’ll just have to sort the all-info .csv file and extract just “today’s” date through code. (Which would not be efficien.t)
FTR: I fixed both bugs (the view date range bug and the QCommandLinewParser error) for konsolekalendar v6.7.2.
as for a workaround: you could try something like konsolekalendar --date YYYY-MM-DD --show-next 10. then at most you’ll see 10 events which might be easier to deal with then all events.
History: konsolekalendar was the first KDE program I wrote when joining the project almost 25 years ago. I hadn’t touched the code in a long, long time and it was fun looking back at the old (not so great) code I wrote when first learning C++ and a little bit of Qt.
Debian Stable’s newest konsolekalendar version is v6.3.3 (from konsolekalendar -v). Maybe that’s the problem No matter, will use some code creativity for now to get today’s events, until the package is updated for Trixie.
Thank you so much for the feedback. And for writing konsolekalendar at all!
It is, paired KOrganizer, extremely useful because it lets another proyect communicate through CLI in a structured manner and also ‘normal’ users through GUI. For this specific use case (GNUmed), that lets users add through the GUI events to KOrganizer (say, patient appointments), and also GNUmed to ask through CLI what today’s events are and display nice columns with the list of events in order.
Thanks again! Hope you have a great rest of the weekend.