[Digikam-devel] [Bug 145252] Umask settings used for album directory, not for image files
Arnd Baecker
arnd.baecker at web.de
Fri Oct 19 15:12:50 BST 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=145252
------- Additional Comments From arnd.baecker web de 2007-10-19 16:12 -------
Well, for the moment I think it is simplest to:
a) don't touch the thumbnails
b) new files: respect umask
modified files: use same protection as the unmodified version had.
(as Achim suggested above)
For the second case in b): How do I get the mode
from the file?
I.e. the code will (presumably) look like this:
mode = 0666;
if (m_savingContext->destinationExisted)
mode = CALL_TO_GET_THE_MODE_OF_THE_ORIGINAL(m_savingContext->srcURL);
I could not find a method of the KURL class which would provide this.
Is there any KDE/Qt way to do it, or what is the best approach here?
Thanks, Arnd
More information about the Digikam-devel
mailing list