Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-30-2019, 09:57 AM   #1
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
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.
rashkae is offline   Reply With Quote
Old 06-30-2019, 10:26 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
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
DiapDealer is offline   Reply With Quote
Advert
Old 06-30-2019, 10:39 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 06-30-2019, 10:46 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 06-30-2019, 12:37 PM   #5
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
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.)
rashkae is offline   Reply With Quote
Advert
Old 06-30-2019, 01:09 PM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by rashkae View Post
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.
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.
Doitsu is offline   Reply With Quote
Old 06-30-2019, 03:52 PM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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:
Originally Posted by Doitsu View Post
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.
This only happens if the deleted files are not located on the same partition or physical device media as your home directory. See the Trash specification for more details: https://specifications.freedesktop.o...hspec-1.0.html

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.
eschwartz is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 04:11 AM.


MobileRead.com is a privately owned, operated and funded community.