Summary: | Can not save images on Windows | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | David Eriksson <meldavid> |
Component: | DImg-FileIO | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, ps_ml |
Priority: | NOR | ||
Version: | 1.0.0 | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | Version Fixed In: | 1.0.0 | |
Sentry Crash Report: | |||
Attachments: |
Patch to make Save As work
Patch to make Save work |
Description
David Eriksson
2009-04-21 21:10:18 UTC
If your image is in your user directory, it will have read only / archive flag, and it's a stupid stuff from M$... We need to patch digiKam to ignore this flag everywhere (under win32 only of course) Do not ask me why files have this flag... I don't understand M$ policy... Gilles Caulier I tried using a directory on another partition (FAT32) with the same result. I also noticed that the file is actually saved but has a name like xd1124.digikamtempfile.tmp1124. I think this is related to bug 189742 (Thumbnails not saved), since Windows don't like renaming open files. The attached patch (made along the lines of the solution to bug 189742) closes the KTemporaryFile directly after it is created since it didn't work just closing it before the final rename. I suspect there is some renaming done in the saving of the image to the temporary file. The patch enables me to do Save As, but not Save and I suspect this is due to the image still being open in the editor during a Save. Now when I can save an image I realized that it is always saved as png, independently of what I choose as a name or format. Created attachment 33528 [details]
Patch to make Save As work
SVN commit 966369 by cgilles: apply patch #33528 from David Eriksson. Thanks for this patch and tests under Windows. BUG: 190296 CCMAIL: meldavid@acc.umu.se M +12 -6 editorwindow.cpp M +1 -0 savingcontextcontainer.h WebSVN link: http://websvn.kde.org/?view=rev&revision=966369 I have now got Save to work also. The new patch includes the parts I missed in for the rename of the file. Created attachment 33560 [details]
Patch to make Save work
SVN commit 966775 by cgilles: apply patch #33560 CCBUGS: 190296 M +13 -1 editorwindow.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=966775 Thanks David for your patches. As you work under windows, do you know a solution about this entry : https://bugs.kde.org/show_bug.cgi?id=189168 Gilles Caulier |