Hi, when saving a file in ktuberling, the .tuberling extension isn't added automatically. So later on if one opens the file open dialog, that file isn't shown. But if one manually adds filename.tuberling when saving the file, then it properly gets saved. Observed in Ubuntu 18.04 and 19.10. Thank you.
which ktuberling version are you using?
Hi, the last version that I've tested with was on Ubuntu 19.10, which has ktuberling 4:19.04.3-0ubuntu1.
That's kind of old. Would you be able to provide a video of you trying to save a file?
I tested again in various distributions. My conclusion is that to reproduce the issue, one just needs to install ktuberling in any **non-KDE** distribution. Ubuntu Mate 20.04, ktuberling 4:19.08.3-0ubuntu1: FAILS Kubuntu 20.04, ktuberling 4:19.08.3-0ubuntu1: WORKS Kubuntu 18.04, ktuberling 4:17.12.3-0ubuntu1: WORKS Fedora XFCE 30, ktuberling 19.04.2-1: FAILS So I guess it's a problem with missing dependencies or with Qt/GNOME integration or something. Nevertheless, ktuberling doesn't show any warnings in stderr about missing things.
Created attachment 124109 [details] Screenshot of the issue Here's a screenshot of the issue (instead of video as it's quicker). Steps that I did: I opened ktuberling, pressed Ctrl+S to save, named: asdf. Closed ktuberling. Then I did the same steps again. Of course ktuberling tells me that "asdf" already exists now; but not that it's not displayed in the dialog as it doesn't have the .tuberling extension. Of course this tells me that the "asdf" file a
Sorry I sent my previous comment too soon and it had a couple of typos, here's the correct one: Here's a screenshot of the issue (instead of video as it's quicker). Steps that I did: I opened ktuberling, pressed Ctrl+S to save, named: asdf. Closed ktuberling. Then I did the same steps again. Of course ktuberling tells me that "asdf" already exists now; but note that it's not displayed in the dialog as it doesn't have the .tuberling extension.
i guess this is a bug in Qt's integration with the gtk file dialog. Needs investigating, but nothing that can actually be fixed in KTuberling.
The problem can be easily reproduced by running: export XDG_CURRENT_DESKTOP=MATE ktuberling I.e. the problem happens in any desktop environment except for KDE, and it can even reproduced under KDE by modifying the XDG_CURRENT_DESKTOP environment variable. Wouldn't it be possible for the ktuberling code to manually add the extension, when it sees that it's missing from the filename that it gets from the file > save dialog?
> Wouldn't it be possible for the ktuberling code to manually add the extension, when it sees that it's missing from the filename that it gets from the file > save dialog? It would but then we would have to fix the same bug in a million places, what we need is for Qt to get fixed.
Actually it seems i remembered wrong and Qt doesn't guarantee that it will add the extesion, so yes, we have to do this check in all the apps :/
A possibly relevant merge request was started @ https://invent.kde.org/games/ktuberling/-/merge_requests/2
Git commit 6ba5b71bfdaeaa396a631fa3d1a57499b01469c8 by Albert Astals Cid. Committed on 25/11/2021 at 23:31. Pushed by aacid into branch 'release/21.12'. Make sure the saved files have the extension they should have The Qt dialog API doesn't guarantee the returned string will have one of the chosen extensions, but if that doesn't happen ktuberling is unhappy so enforce them M +46 -2 toplevel.cpp https://invent.kde.org/games/ktuberling/commit/6ba5b71bfdaeaa396a631fa3d1a57499b01469c8