Deleting doesn't move to recycle bin

Bugs which are supposed to be fixed in the next test version (not available yet)

Moderators: xnview, Dreamer

User avatar
xnview
Author of XnView
Posts: 48159
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Deleting doesn't move to recycle bin

Post by xnview »

david3 wrote: Thu Aug 14, 2025 1:00 pm It seems it doesn't like using the recycle bin for deleting from mount points. It's unclear if it's a btrfs thing (mounting a subvolume), or more general.
Files are on BTRFS volume?
phototweak wrote: Mon Dec 01, 2025 5:52 pm In Linux Mint 22.2 Cinnamon and working on a directly-installed SATA HDD (separate from the OS NVMe), deleted files are not put in Trash as selected. Is there a solution? The terminal shows messages like these:

Code: Select all

## ==> gvfs-trash has problem!!====> 1  127
## ==> gvfs-trash has problem!!====> 1  127
## ==> gvfs-trash has problem!!====> 1  127
Do you have gio or gvfs-trash?
david3
Posts: 14
Joined: Sat Jun 14, 2025 3:00 pm

Re: Deleting doesn't move to recycle bin

Post by david3 »

xnview wrote: Thu Apr 30, 2026 7:14 am
david3 wrote: Thu Aug 14, 2025 1:00 pm It seems it doesn't like using the recycle bin for deleting from mount points. It's unclear if it's a btrfs thing (mounting a subvolume), or more general.
Files are on BTRFS volume?
phototweak wrote: Mon Dec 01, 2025 5:52 pm In Linux Mint 22.2 Cinnamon and working on a directly-installed SATA HDD (separate from the OS NVMe), deleted files are not put in Trash as selected. Is there a solution? The terminal shows messages like these:

Code: Select all

## ==> gvfs-trash has problem!!====> 1  127
## ==> gvfs-trash has problem!!====> 1  127
## ==> gvfs-trash has problem!!====> 1  127
Do you have gio or gvfs-trash?
Yes, the files on are a BTRFS volume. I have gio and gvfs.

Code: Select all

gvfs/stable,now 1.57.2-2+deb13u1 amd64 [installed,automatic]

Code: Select all

$ gio trash test-1.jpg
gio: file:///mnt/x/test/test-1.jpg: Trashing on system internal mounts is not supported
However, I've noticed recently when I delete an image from xnview, it is moved to the recycle bin.

Code: Select all

#### trash via QFile::moveToTrash OK
deleteIndexes 0 - 0
deleteIndexes 5
I'm not sure what changed, but it's working now.

Sorry I didn't notice your reply sooner.
FreakyAlleyCat
Posts: 3
Joined: Wed Jul 08, 2026 12:32 pm

Re: Deleting doesn't move to recycle bin

Post by FreakyAlleyCat »

xnview wrote: Wed Jul 30, 2025 3:08 pm
david3 wrote: Sun Jul 13, 2025 1:47 pm
xnview wrote: Mon Jul 07, 2025 7:53 am Ok, gio doesn't support to delete a file from USB hard drive (FAT32 or exFAT)
The USB hard drive has a BTRFS file system, same as the system SSD drive that sends files to the recycle bin.
could you gio on with a file on your usb drive?

I need to chime in on this after troubleshooting for a couple of hours.
I encountered the same problem on Linux Fedora 44 (KDE) both with the Flatpack install and with the Appimage and it is driving me nuts today.

My summary is:

Fedora 44 KDE (Wayland), XnView MP 1.11.5 (official AppImage and Flatpak both tested).

- "Use Recycle Bin" is enabled.
- Deleting from XnView in Viewer permanently deletes files instead of moving them to Trash.

I was unsure if this had anything to do with the mount points, so i tested both on my NTFS hard drive (shared with a win11 dualboot for files) and on my dedicated Fedora OS nvme drive formatted in Btrfs. This happens on both:

- Btrfs (~/Pictures)
- NTFS-3G shared drive

- Dolphin correctly moves the same files to Trash on all drives.

gio trash <file> also correctly moves the file to Trash.

Running XnView from a terminal prints:

#### check gio -1

immediately before the file is permanently deleted.
User avatar
xnview
Author of XnView
Posts: 48159
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Deleting doesn't move to recycle bin

Post by xnview »

FreakyAlleyCat wrote: Wed Jul 08, 2026 12:40 pm Running XnView from a terminal prints:

#### check gio -1

immediately before the file is permanently deleted.
do you have "#### portal trash XXXX"? with tgz, is it working?
FreakyAlleyCat
Posts: 3
Joined: Wed Jul 08, 2026 12:32 pm

Re: Deleting doesn't move to recycle bin

Post by FreakyAlleyCat »

No, I don't see any #### portal trash ... messages. I only get #### check gio -1 before the file is permanently deleted.

I have only tried the Appimage and Flatpack right now, not the TGZ. I can test the .TGZ build later if you'd like me to.
FreakyAlleyCat
Posts: 3
Joined: Wed Jul 08, 2026 12:32 pm

Re: Deleting doesn't move to recycle bin

Post by FreakyAlleyCat »

xnview wrote: Wed Jul 08, 2026 2:25 pm do you have "#### portal trash XXXX"? with tgz, is it working?
TGZ is working perfectly fine!

AppImage: files are permanently deleted, terminal shows #### check gio -1.
TGZ: files are correctly moved to the Trash. I do not see #### check gio -1, nor do I see any #### portal trash ... messages.
User avatar
xnview
Author of XnView
Posts: 48159
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Deleting doesn't move to recycle bin

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.