Request: Delete folders using recycle bin

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

Post Reply
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

Request: Delete folders using recycle bin

Post by rmtk »

Now we can check "use recycle bin" option in file operations settings to delete files to recycle bin. But for folders, they are permentently deleted directly.
I think this should be changed.
I'm using linux version.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Request: Delete folders using recycle bin

Post by oops66 »

rmtk wrote:Now we can check "use recycle bin" option in file operations settings to delete files to recycle bin. But for folders, they are permentently deleted directly.
I think this should be changed.
I'm using linux version.
Hello,
Yes, ... an old "bug", it's a severe bug for me ... this is very dangerous if a lot of pictures were stored into this deleted folder.
see here:
http://newsgroup.xnview.com/viewtopic.p ... 05#p109705
XnViewMP Linux X64 - Debian - X64
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Request: Delete folders using recycle bin

Post by xnview »

On which distribution?
On ubuntu, files are moved in ~/.local/share/Trash/files
Pierre.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Request: Delete folders using recycle bin

Post by oops66 »

xnview wrote:On which distribution?
On ubuntu, files are moved in ~/.local/share/Trash/files
Hello Pierre,
...Yes but you also have to keep the structure bellow for files into folders too. (actually it's ok only for file1.txt, file2.png, file n, etc..(the trash root directory) not yet for FOLDERS and files into FOLDERS.
... To reproduce, 1-) first copy/or/create a folder with some pictures insides ... 2-) delete this folder (the copy) within XnviewMP (here, for example from a 4images-folder thumbnail into the browser mode + key "Suppr" - or Del - confirm Yes ... then the folder and the files are permanently deleted directly).
XnViewMP 0.56 Linux X64 - Ubuntu 12.04 LTS - X64

Code: Select all

~/.local/share/Trash/files/
                             ... file1.txt
                             ... file2.png
                             ... file n
                             ... FOLDER1
                                    ... file3.jpg
                                    ... file4.gz
                              ... FOLDER2
                                     ... file n
                                     ... FOLDER20
                                               ... file n
XnViewMP Linux X64 - Debian - X64
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Request: Delete folders using recycle bin

Post by oops66 »

... It's a little bit better with MP-Linux-x64-0.60 for folders (folders not deleted directly) ... but now, I can not restore directly the files /or/ folders from the trash can, via the "restore button" ="Restaurer les éléments sélectionnés"
) :(

Code: Select all

Impossible de déterminer l'emplacement d'origine de « Copy of folder1 »
Impossible de restaurer l'élément depuis la corbeille
So a bug still there.
XnViewMP Linux X64 - Debian - X64
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Request: Delete folders using recycle bin

Post by xnview »

oops66 wrote:... It's a little bit better with MP-Linux-x64-0.60 for folders (folders not deleted directly) ... but now, I can not restore directly the files /or/ folders from the trash can, via the "restore button" ="Restaurer les éléments sélectionnés"
) :(

Code: Select all

Impossible de déterminer l'emplacement d'origine de « Copy of folder1 »
Impossible de restaurer l'élément depuis la corbeille
So a bug still there.
And works with files?
Pierre.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Request: Delete folders using recycle bin

Post by oops66 »

xnview wrote:...And works with files?
No same warning message ... :-( ... (but it's possible to restore the files (or folders + files) by hand ;-))
XnViewMP Linux X64 - Debian - X64
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Request: Delete folders using recycle bin

Post by xnview »

oops66 wrote:
xnview wrote:...And works with files?
No same warning message ... :-( ... (but it's possible to restore the files (or folders + files) by hand ;-))
ok, i don't know where is stored the original pathname :?:
Pierre.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Request: Delete folders using recycle bin

Post by oops66 »

xnview wrote:
oops66 wrote:
xnview wrote:...And works with files?
No same warning message ... :-( ... (but it's possible to restore the files (or folders + files) by hand ;-))
ok, i don't know where is stored the original pathname :?:
Do you have tryed "gvfs-trash" instead the "mv" or "rm" commands ?

Code: Select all

gvfs-trash file1.txt
gvfs-trash folder1
XnViewMP Linux X64 - Debian - X64
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Request: Delete folders using recycle bin

Post by xnview »

oops66 wrote: Do you have tryed "gvfs-trash" instead the "mv" or "rm" commands ?

Code: Select all

gvfs-trash file1.txt
gvfs-trash folder1
Do you know if it works on all system?
Pierre.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Request: Delete folders using recycle bin

Post by oops66 »

xnview wrote:
oops66 wrote: Do you have tryed "gvfs-trash" instead the "mv" or "rm" commands ?

Code: Select all

gvfs-trash file1.txt
gvfs-trash folder1
Do you know if it works on all system?
...No, I do not know ... on Ubuntu yes... (...but I think in most linux distibutions)
http://askubuntu.com/questions/3982/is- ... thing-else
.... The main advantage of gvfs-trash is that it's installed by default in Ubuntu.
XnViewMP Linux X64 - Debian - X64
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Request: Delete folders using recycle bin

Post by oops66 »

Fixed for me with gvfs, with the XnViewMP x64 linux 0.61 version ... Thank you Pierre.

Also fixed with gvfs-mount
EX. Into the xnViewMP browser:
/home/user1/.gvfs/disque_dur_BOX_sur_192.168.1.1/dir01/pic01.jpg
or local hdd or partition:
//media/ntfs-data/0_test/pic01.jpg

Code: Select all

gvfs mount:
gvfs-mount -dm `readlink -f /dev/disk/by-label/ntfs-data`

umount:
gvfs-mount -u /media/ntfs-data  # LABEL="ntfs-data"
Edit:
http://newsgroup.xnview.com/viewtopic.p ... 45#p117345
XnViewMP Linux X64 - Debian - X64
Post Reply