Bug 487774 - Opening Tab-Separated CSV Files From Terminal
Summary: Opening Tab-Separated CSV Files From Terminal
Status: RESOLVED FIXED
Alias: None
Product: kwordquiz
Classification: Applications
Component: general (show other bugs)
Version: 24.02.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Peter Hedlund
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-29 23:35 UTC by promike1987
Modified: 2025-02-17 09:39 UTC (History)
1 user (show)

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


Attachments
tab-separated CSV file (19 bytes, text/plain)
2024-06-01 00:10 UTC, promike1987
Details

Note You need to log in before you can comment on or make changes to this bug.
Description promike1987 2024-05-29 23:35:51 UTC
SUMMARY

When attempting to run KWordQuiz from the terminal and opening a tab-separated CSV file using the command kwordquiz -g flash -- /path/to/file.csv or kwordquiz -g flash --+ /path/to/file.csv, the options did not work as expected. Additionally, using the --+ option resulted in the error message "kwordquiz: Unknown option '+'". No difference was observed when using the -g flash, -g mc, or -g qa options.

STEPS TO REPRODUCE

Run kwordquiz -g flash -- /path/to/file.csv or kwordquiz -g flash --+ /path/to/file.csv from the terminal.

OBSERVED RESULT
The options -g flash -- /path/to/file.csv and -g flash --+ /path/to/file.csv did not work as expected.
Using the --+ option resulted in the error message "kwordquiz: Unknown option '+'".

EXPECTED RESULT
The command kwordquiz -g flash -- /path/to/file.csv or kwordquiz -g flash --+ /path/to/file.csv should open the specified tab-separated CSV file for the flashcard session as intended.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION

Kernel Version: 6.6.30-2-lts (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i3-2350M CPU @ 2.30GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 3000
System Version: 1.0
KWordQuiz Version: 24.02.2
Comment 1 Albert Astals Cid 2024-05-30 07:48:34 UTC
Can you attach a csv file you expect to work?
Comment 2 promike1987 2024-06-01 00:10:42 UTC
Created attachment 170030 [details]
tab-separated CSV file
Comment 3 promike1987 2024-06-01 00:12:16 UTC
(In reply to Albert Astals Cid from comment #1)
> Can you attach a csv file you expect to work?

Yes, I can provide a CSV file for testing purposes. However, the issue occurs with any CSV file I try to open using the specified commands, not just a specific one.
kwordquiz --goto 'flash' -- ./demo.csv
It's just as effective as a simple 'kwordquiz'.
Comment 4 Bug Janitor Service 2024-06-16 03:47:03 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Albert Astals Cid 2024-06-16 17:03:56 UTC
info was provided
Comment 6 Bug Janitor Service 2025-02-16 23:19:49 UTC
A possibly relevant merge request was started @ https://invent.kde.org/education/kwordquiz/-/merge_requests/58
Comment 7 Carl Schwan 2025-02-17 09:32:49 UTC
Git commit d764b79dedfdfe2610006b45b30d9ee98531c675 by Carl Schwan.
Committed on 17/02/2025 at 09:32.
Pushed by carlschwan into branch 'release/24.12'.

Fix opening files from command line


(cherry picked from commit 5cd38d992b20aa912888b4736db1f0af008c9f6b)

Co-authored-by: Albert Astals Cid <aacid@kde.org>

M  +1    -1    src/kwqdocumentmodel.cpp
M  +1    -1    src/kwqdocumentmodel.h
M  +1    -1    src/qml/DeckEditorPage.qml

https://invent.kde.org/education/kwordquiz/-/commit/d764b79dedfdfe2610006b45b30d9ee98531c675
Comment 8 Albert Astals Cid 2025-02-17 09:39:42 UTC
Git commit 5cd38d992b20aa912888b4736db1f0af008c9f6b by Albert Astals Cid.
Committed on 16/02/2025 at 23:19.
Pushed by carlschwan into branch 'master'.

Fix opening files from command line

M  +1    -1    src/kwqdocumentmodel.cpp
M  +1    -1    src/kwqdocumentmodel.h
M  +1    -1    src/qml/DeckEditorPage.qml

https://invent.kde.org/education/kwordquiz/-/commit/5cd38d992b20aa912888b4736db1f0af008c9f6b