06-30-2019, 09:57 AM | #1 |
Wizard
Posts: 1,215
Karma: 5372649
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
Calibre on Linux, deleted files lignering forever
Calibre 3.44 installed on Ubuntu 16.04
When files are deleted in Calibre, they are moved to the .Trash-<uid> folder, However, the files do not appear in the Trash folder on any of the file managers, (Mate, Gnome, nor in KDE's Dolphin.). ergo emptying the trash does not remove them. They stay stuck until I manually delete the hidden .Trash folders. What system command, exactly, that Calibre is using to delete files that is failing, I don't know. |
06-30-2019, 10:26 AM | #2 |
Grand Sorcerer
Posts: 27,976
Karma: 198535232
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
A quick check on a couple of my Linux VMs shows deleted books going to the Desktop Environment's Trash folder. Emptying the trash then removes them.
Arch Linux (Cinnamon) Mint 19 (Xfce) Calibre 3.44 |
Advert | |
|
06-30-2019, 10:39 AM | #3 |
creator of calibre
Posts: 44,413
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre uses a python send2trash implementation to mov files to trash on linux. See the linux_trash.py file in the calibre source code.
|
06-30-2019, 10:46 AM | #4 |
creator of calibre
Posts: 44,413
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
and on my system dolphin is abl to find and delete the trash files fine.
|
06-30-2019, 12:37 PM | #5 |
Wizard
Posts: 1,215
Karma: 5372649
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
Thank you.
A bit more testing has revealed that the same thing happens if deleting files from the same mount point with either Nautilus or PCFile Man. it seems to be something fundamentally broken with GTK apps and multiple mount points on same device. (ie, nothing at all to do with Calibre, sorry for the bother.) |
Advert | |
|
06-30-2019, 01:09 PM | #6 |
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
BTW, on my Arch Linux 5.1.15 OpenBox machine, files deleted with Thunar and PCManFM are moved to the trash can (/home/$USER/.local/share/Trash), however, Calibre books end up in the Trash-<uid> tmp folder.
|
06-30-2019, 03:52 PM | #7 | |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
The .Trash-<uid> directory should be created in the root of the external drive. Programs which implement the Trash specification should show you these files, but don't always (and just because they put them there is not a guarantee that they will see them once they do). One Trash implementation that I know works is the trash-list command that is part of trash-cli (a command-line utility). "gio ls" seems to work too, but it's unusable to parse. nemo successfully shows them to me in the GUI. Last edited by eschwartz; 06-30-2019 at 04:08 PM. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre library getting deleted on linux server | Zeros | Calibre | 3 | 09-10-2014 06:13 AM |
Calibre stores automatically deleted files in the library | sup | Library Management | 13 | 11-13-2013 11:56 PM |
Calibre files deleted on Shut Down | hypercane713 | Calibre | 3 | 09-12-2010 02:12 PM |
Deleting temp calibre files sometimes takes forever | Takeshi_12 | Calibre | 6 | 07-29-2010 05:13 PM |