Bug 444998

Summary: Saving in non-KDE environments shows Unknown file type
Product: [Applications] kwordquiz Reporter: Alkis Georgopoulos <alkisg>
Component: generalAssignee: Peter Hedlund <peter>
Status: RESOLVED FIXED    
Severity: normal CC: aacid
Priority: NOR    
Version: 21.08.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alkis Georgopoulos 2021-11-05 07:44:31 UTC
SUMMARY
The File>Save dialog of kwordquiz fails in non-KDE environments, with a dialog of "Unknown file type".
The problem can also be reproduced in KDE environments by altering the XDG_CURRENT_DESKTOP environment variable.
The problem can be avoided by including the .kvtml extension when typing the filename.

STEPS TO REPRODUCE
1. Either run kwordquiz in a non-KDE environment, or use this to run it under KDE:
```shell
export XDG_CURRENT_DESKTOP=MATE
kwordquiz
```
2. Try to save the quiz with a name of "test". A dialog will popup, that says "Unknown file type".
3. Try to save the quiz with a name of "test.kvtml". It will be saved properly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu MATE 22.04
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Comment 1 Albert Astals Cid 2021-11-05 20:55:12 UTC
This is the same as 414040.

Qt is buggy and should be fixed.
Comment 2 Albert Astals Cid 2021-11-17 14:28:39 UTC
As mentioned on the other bug, no, Qt is not buggy in this regard, i had misinterpreted the Qt API
Comment 3 Bug Janitor Service 2021-11-17 14:29:59 UTC
A possibly relevant merge request was started @ https://invent.kde.org/education/kwordquiz/-/merge_requests/8
Comment 4 Albert Astals Cid 2021-11-25 23:29:10 UTC
Git commit e5814f40103b13b4acb496a605fbb5cc6954d18e by Albert Astals Cid.
Committed on 25/11/2021 at 23:28.
Pushed by aacid into branch 'release/21.12'.

Fix code that tries to add extension if it's missing

M  +16   -5    src/kwordquiz.cpp

https://invent.kde.org/education/kwordquiz/commit/e5814f40103b13b4acb496a605fbb5cc6954d18e