[Digikam-devel] Win32 : send to trash a file
Gilles Caulier
caulier.gilles at gmail.com
Sun Oct 3 13:34:59 BST 2010
Marcel,
Do you remember my problem under windows to delete a file. kioslave
crash with KDE 4.4.1. No backtrace available.
With KDE 4.4.4 installed under Win7, it do not crash, but file is not
deleted. If i run debugview program to hndle kdebug and other qt
reports, i can see this :
[5340] Debug:digikam(5340) KUrl::path: ""
[5340] Debug:digikam(5340) KUrl::path: ""
[5340] Debug:digikam(5340) KUrl::path: "/"
[5340] Debug:digikam(5340) KUrl::path: "/"
[5836] Debug:kio_digikamalbums(5836) class QString __thiscall
KUrl::path(enum KUrl::AdjustPathOption) const: "/"
[5340] Debug:digikam(5340) KUrl::path: ""
[5340] Debug:digikam(5340) KUrl::path: ""
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Chrysanthemum.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Chrysanthemum.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Chrysanthemum.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Chrysanthemum.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Desert.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Desert.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Chrysanthemum.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Chrysanthemum.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Chrysanthemum.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Chrysanthemum.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Desert.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Desert.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Hydrangeas.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Hydrangeas.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Jellyfish.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Jellyfish.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Koala.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Koala.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Hydrangeas.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Hydrangeas.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Lighthouse.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Lighthouse.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Jellyfish.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Jellyfish.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Penguins.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Penguins.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Tulips.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/Tulips.jpg"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/tooltips.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/tooltips.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/tooltips2.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/tooltips2.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/resizetool.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/resizetool.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: "/"
[5340] Debug:digikam(5340) KUrl::path: "/"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows.png"
[1584] Debug:trying to load 'kio_trash'
[1584] Debug:kio_trash(1584) class QString __thiscall KUrl::path(enum
KUrl::AdjustPathOption) const: "/"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: "/"
[5340] Debug:digikam(5340) KUrl::path:
"/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[1584] Debug:kio_trash(1584) class QString __thiscall KUrl::path(enum
KUrl::AdjustPathOption) const: converted to local file - the related
call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path:
"/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path:
"/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: "/"
[5340] Debug:digikam(5340) KUrl::path:
"/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: "/"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures"
[5340] Debug:digikam(5340) KUrl::path: converted to local file - the
related call should be converted to toLocalFile()
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png"
The question is : why there is a "/" on the front of
"/C:/Users/Gilles/Pictures/digikam1.5.0-windows-lensfuntools.png" ???
Gilles
More information about the Digikam-devel
mailing list