Win32 : send to trash a file

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Win32 : send to trash a file

Gilles Caulier-4
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
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Win32 : send to trash a file

Gilles Caulier-4
Marcel,

In source code, i can read this :

http://lxr.kde.org/source/extragear/graphics/digikam/digikam/imageviewutilities.cpp#151

Perhaps there is an issue there under windows ?

Gilles

2010/10/3 Gilles Caulier <[hidden email]>:

> 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
>
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Win32 : send to trash a file

Marcel Wiesweg
In reply to this post by Gilles Caulier-4

> [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" ???

Yes, this error message is potentially very helpful.
We must use everywhere toLocalFile() instead of path() when converting a KUrl
to a file path - because as you see, path() will break under Windows.
That could explain our problems.

Not every occurrence of path() should be replaced. I remember to have manually
checked path() calls to convert all where applicable. But I must have missed
one.

Can you find out, perhaps by setting a breakpoint on KUrl::path() before
pressing delete, where that error message comes from?

Marcel
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Win32 : send to trash a file

Gilles Caulier-4
Another interresting behavor :

If i drag and drop an item from digiKam icon view to the windows trash
icon from the desktop, it work very well...

Gilles

2010/10/4 Gilles Caulier <[hidden email]>:

> Marcel,
>
> More info there :
>
> I set some debug print on the console (redirected to debugview under windows)
>
> I patched imageviewutilities.cp like this :
>
> --- C:/Users/Gilles/AppData/Local/Temp/imageviewutilities.cp-revBASE.svn001.tmp.cpp     lun.
> oct.  4 14:30:56 2010
> +++ D:/devel/mingw/graphics/digikam/digikam/imageviewutilities.cpp      lun.
> oct.  4 12:16:49 2010
> @@ -149,7 +149,7 @@
>     bool useTrash = !dialog.shouldDelete();
>
>     // trash does not like non-local URLs, put is not implemented
> -    KIO::Job* job = DIO::del(useTrash ? urlList : kioUrlList, useTrash);
> +    KIO::Job* job = DIO::del(/*useTrash ? urlList : */kioUrlList, useTrash);
>
>     connect(job, SIGNAL(result(KJob*)),
>             this, SLOT(slotDIOResult(KJob*)));
>
> ...and now, digiKam kioslave said that trash cannot be access. Look my
> screenshot for details.
>
> More interesting, is about to move file. i can move item from digiKam
> album to another one without any problem. Only trash is a problem
> under windows.
>
> Gilles
>
> 2010/10/3 Marcel Wiesweg <[hidden email]>:
>>
>>> [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" ???
>>
>> Yes, this error message is potentially very helpful.
>> We must use everywhere toLocalFile() instead of path() when converting a KUrl
>> to a file path - because as you see, path() will break under Windows.
>> That could explain our problems.
>>
>> Not every occurrence of path() should be replaced. I remember to have manually
>> checked path() calls to convert all where applicable. But I must have missed
>> one.
>>
>> Can you find out, perhaps by setting a breakpoint on KUrl::path() before
>> pressing delete, where that error message comes from?
>>
>> Marcel
>> _______________________________________________
>> Digikam-devel mailing list
>> [hidden email]
>> https://mail.kde.org/mailman/listinfo/digikam-devel
>>
>
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Win32 : send to trash a file

Gilles Caulier-4
In reply to this post by Marcel Wiesweg
---------- Forwarded message ----------
From: Gilles Caulier <[hidden email]>
Date: 2010/10/4
Subject: Re: [Digikam-devel] Re: Win32 : send to trash a file
To: digiKam developers room - digiKam - Manage your photographs as a
professional with the power of open source <[hidden email]>


Marcel,

More info there :

I set some debug print on the console (redirected to debugview under windows)

I patched imageviewutilities.cp like this :

--- C:/Users/Gilles/AppData/Local/Temp/imageviewutilities.cp-revBASE.svn001.tmp.cpp
    lun.
oct.  4 14:30:56 2010
+++ D:/devel/mingw/graphics/digikam/digikam/imageviewutilities.cpp      lun.
oct.  4 12:16:49 2010
@@ -149,7 +149,7 @@
    bool useTrash = !dialog.shouldDelete();

    // trash does not like non-local URLs, put is not implemented
-    KIO::Job* job = DIO::del(useTrash ? urlList : kioUrlList, useTrash);
+    KIO::Job* job = DIO::del(/*useTrash ? urlList : */kioUrlList, useTrash);

    connect(job, SIGNAL(result(KJob*)),
            this, SLOT(slotDIOResult(KJob*)));

...and now, digiKam kioslave said that trash cannot be access. Look my
screenshot for details :

http://www.flickr.com/photos/digikam/5051036506/

More interesting, is about to move file. i can move item from digiKam
album to another one without any problem. Only trash is a problem
under windows.

Gilles

2010/10/3 Marcel Wiesweg <[hidden email]>:

>
>> [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" ???
>
> Yes, this error message is potentially very helpful.
> We must use everywhere toLocalFile() instead of path() when converting a KUrl
> to a file path - because as you see, path() will break under Windows.
> That could explain our problems.
>
> Not every occurrence of path() should be replaced. I remember to have manually
> checked path() calls to convert all where applicable. But I must have missed
> one.
>
> Can you find out, perhaps by setting a breakpoint on KUrl::path() before
> pressing delete, where that error message comes from?
>
> Marcel
> _______________________________________________
> Digikam-devel mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-devel
>
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Win32 : send to trash a file

Gilles Caulier-4
Marcel,

And more : If i press SHIFT+DEL to delete definitively an item, it
work but digiKam said that it cannot delete the item...

http://www.flickr.com/photos/digikam/5050418561/in/photostream/

Gilles

2010/10/4 Gilles Caulier <[hidden email]>:

> ---------- Forwarded message ----------
> From: Gilles Caulier <[hidden email]>
> Date: 2010/10/4
> Subject: Re: [Digikam-devel] Re: Win32 : send to trash a file
> To: digiKam developers room - digiKam - Manage your photographs as a
> professional with the power of open source <[hidden email]>
>
>
> Marcel,
>
> More info there :
>
> I set some debug print on the console (redirected to debugview under windows)
>
> I patched imageviewutilities.cp like this :
>
> --- C:/Users/Gilles/AppData/Local/Temp/imageviewutilities.cp-revBASE.svn001.tmp.cpp
>     lun.
> oct.  4 14:30:56 2010
> +++ D:/devel/mingw/graphics/digikam/digikam/imageviewutilities.cpp      lun.
> oct.  4 12:16:49 2010
> @@ -149,7 +149,7 @@
>     bool useTrash = !dialog.shouldDelete();
>
>     // trash does not like non-local URLs, put is not implemented
> -    KIO::Job* job = DIO::del(useTrash ? urlList : kioUrlList, useTrash);
> +    KIO::Job* job = DIO::del(/*useTrash ? urlList : */kioUrlList, useTrash);
>
>     connect(job, SIGNAL(result(KJob*)),
>             this, SLOT(slotDIOResult(KJob*)));
>
> ...and now, digiKam kioslave said that trash cannot be access. Look my
> screenshot for details :
>
> http://www.flickr.com/photos/digikam/5051036506/
>
> More interesting, is about to move file. i can move item from digiKam
> album to another one without any problem. Only trash is a problem
> under windows.
>
> Gilles
>
> 2010/10/3 Marcel Wiesweg <[hidden email]>:
>>
>>> [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" ???
>>
>> Yes, this error message is potentially very helpful.
>> We must use everywhere toLocalFile() instead of path() when converting a KUrl
>> to a file path - because as you see, path() will break under Windows.
>> That could explain our problems.
>>
>> Not every occurrence of path() should be replaced. I remember to have manually
>> checked path() calls to convert all where applicable. But I must have missed
>> one.
>>
>> Can you find out, perhaps by setting a breakpoint on KUrl::path() before
>> pressing delete, where that error message comes from?
>>
>> Marcel
>> _______________________________________________
>> Digikam-devel mailing list
>> [hidden email]
>> https://mail.kde.org/mailman/listinfo/digikam-devel
>>
>
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Win32 : send to trash a file

Marcel Wiesweg
In reply to this post by Gilles Caulier-4

> -    KIO::Job* job = DIO::del(useTrash ? urlList : kioUrlList, useTrash);
> +    KIO::Job* job = DIO::del(/*useTrash ? urlList : */kioUrlList,

That wont work under Linux either. We must pass the urlList (file://)

Does the trash work from any other KDE app under Linux?
I mean, we pass a perfectly normal list of file:// URLs to KIO::trash, nothing
more. Nothing to be done differently.
What about a bug in kdelibs?
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Win32 : send to trash a file

Gilles Caulier-4
2010/10/4 Marcel Wiesweg <[hidden email]>:
>
>> -    KIO::Job* job = DIO::del(useTrash ? urlList : kioUrlList, useTrash);
>> +    KIO::Job* job = DIO::del(/*useTrash ? urlList : */kioUrlList,
>
> That wont work under Linux either. We must pass the urlList (file://)

sure. but it just to hack under windows of course. Code need to be
adapted properly.

>
> Does the trash work from any other KDE app under Linux?

this is a good question.

I tried with dolphin and konqueror (as file manager mode). Both don't
have "file/delete" or "file/move to trash" option as under linux.
Strange no ?

But from dlophin, when i d&d an item from list view to windows trash
icon, it work as expected...

> I mean, we pass a perfectly normal list of file:// URLs to KIO::trash, nothing
> more. Nothing to be done differently.
> What about a bug in kdelibs?

Perhaps. I don't know. But if it's a bug in KDELibs, i suppose that
d&d action to trash icon cannot run. right ?

Gilles

> _______________________________________________
> Digikam-devel mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-devel
>
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel