Using latest Krita Lime PPA (1:4.0.0-0~201709170641~ubuntu17.04.1) it is impossible to save a file. Saving seems to start but no file is ever created. From the terminal, I get the following message: No file found for ".xml" , even though update-mime-info said it would exist. Either it was just removed, or the directory doesn't have executable permission... ("/home/four/.local/share/mime", "/usr/share/mime", "/usr/local/share/mime") SAFE ASSERT (krita): "!job.mimeType.isEmpty()" in file /build/krita-testing-69tD9s/krita-testing-4.0.0/libs/ui/KisDocument.cpp, line 519 I used previous versions of 4.0 prealpha before and never encountered this issue before... reporting here as requested by Boud on IRC
Thanks. I get the same output but not the problem with saving; however the output itself shows that something undesirable is going on.
Btw, does this hold for every file type?
I tested kra and an image format (png or jpeg not sure which one) and problem was reproducible in the 2 formats. Let me know if you need more precise infos
I am experiencing this bug too, with krita built from master. I too get the same output in terminal.
Okay... You're on OpenSUSE Leap 42.3. What is your exact cmake command line?
I use the following line for building cmake -DCMAKE_INSTALL_PREFIX=$HOME/kf5/inst /run/media/raghu/Data/krita-build/src/krita/ -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPACKAGERS_BUILD=ON -DBUILD_TESTING=OFF
Git commit 6576cf77854cc2e7101439cfa71ab7e4e8bdbe9a by Boudewijn Rempt. Committed on 18/09/2017 at 18:28. Pushed by rempt into branch 'master'. Try harder, even harder, to get a mimetype Apparently, some versions of Qt, when you pass the check-the-content flag, don't check the extension if the target file doesn't exist, so return an empty mimetype. So, after checking with content, if the result is bogus, check for the extension. M +9 -0 libs/koplugin/KisMimeDatabase.cpp https://commits.kde.org/krita/6576cf77854cc2e7101439cfa71ab7e4e8bdbe9a
Git commit f55d05b4a3705dfd76d84bd894c715de4880188c by Boudewijn Rempt. Committed on 18/09/2017 at 18:30. Pushed by rempt into branch 'krita/3.3'. Try harder, even harder, to get a mimetype Apparently, some versions of Qt, when you pass the check-the-content flag, don't check the extension if the target file doesn't exist, so return an empty mimetype. So, after checking with content, if the result is bogus, check for the extension. M +9 -0 libs/koplugin/KisMimeDatabase.cpp https://commits.kde.org/krita/f55d05b4a3705dfd76d84bd894c715de4880188c