calibre: e-book management

Could you PLEASE soften the remove book function

Reported by Karl Harris on 2011-11-01
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Second ebook post-OCR cleanup I've lost because Calibre trashes the entire DIRECTORY, with all versions of the book. All I wanted to delete was the .txt version, with all it's mistakes. It took that, and the .odt version I just spend all day cleaning up , and the .mobi version, and the epub version..... GONE. Irretrievable.

I'd love to have it work like in windows, where the deletion goes into the trash, retrievable. I swear I had a backup copy in another directory, too, and that appears to be gone as well. What gives??

I run Linux, and in Linux apparently the remove book is instantly, irrevocably permanent, without as much as a confirmation prompt. That's a little harsh. It's all or nothing, with no fine control, unless I want to go out and use Nautilus file manager to "fine-tune" 'Calibres hammer-handed treatment.

LOVE the program otherwise.

The delete function puts thigs in the trash can on all platforms that have
halfway decent support for trashcans, linux is not one of them. Furthermore,
the delete function has a confirmation dialog.

If you want trash can support on linux, IIRC there was some
freedesktop.org specification for trashcans. Write some code to use it and
submit that code, I will be happy to accept a patch.

 status wontfix

Changed in calibre:
status: New → Won't Fix

On 11/01/2011 11:28 PM, Kovid Goyal wrote:
> The delete function puts thigs in the trash can on all platforms that have
> halfway decent support for trashcans, linux is not one of them. Furthermore,
> the delete function has a confirmation dialog.
>
> If you want trash can support on linux, IIRC there was some
> freedesktop.org specification for trashcans. Write some code to use it and
> submit that code, I will be happy to accept a patch.
>
> status wontfix
>
> ** Changed in: calibre
> Status: New => Won't Fix
>
I cannot comment on the degree of trash can support within Linux; I am
what you might call an "advanced consumer," most definitely not a
programmer/hacker/guru. It has a trashcan, and "normal" file deletion,
as in within Nautilus file manager and other 'integrated' programs
(read: came with the distribution,) does put deleted items in the
trashcan. Apparently this is broken within the Calibre application.

Not to beat a dead horse, sir, but there is most emphatically NOT a
confirmation dialog for remove book; I just fired Calibre up and deleted
a book to see if I was indeed wrong. I clicked on the book. I clicked
on remove book. The book vanished from Calibre. NO confirmation, just
gone. Book folder within the containing directory, just gone.

Perhaps there IS a confirmation dialog, and it simply is broken in my
install/OS environment. I'm not a programmer (never learned to code, no
aptitude, insufficient attitude.) I'll just have to treat 'remove book'
like the loaded gun that it is. Thanks for the reply, at least.

Kovid Goyal (kovid) wrote :

There is a confirmation dialog. You turned it off in the past. You can turn it
on again by going to Preferences->Behavior->Reset all disabled confirmation
dialogs.

Karl Harris (kharrisma-j) wrote :

On 11/02/2011 09:33 PM, Kovid Goyal wrote:
> There is a confirmation dialog. You turned it off in the past. You can turn it
> on again by going to Preferences->Behavior->Reset all disabled confirmation
> dialogs.
>
Thank-you; I did as you suggested. You may have me there; I HAVE been
known to turn off "superfluous and annoying" confirmation dialogues in
the past; I do not specifically remember doing so in Calibre, but that
just means my memory may be suspect. At 58, this is entirely likely.
Thanks again !

Andrei (googleguy) wrote :

Kovid,

I'm no programmer, but a little research reveals these options for trash support under Linux:

1. http://hg.hardcoded.net/send2trash -- this is a cross-platform python library
2. zim desktop wiki (written in python also) uses gio.File.trash (works fine on my machine) -- http://www.pygtk.org/docs/pygobject/class-giofile.html#method-giofile--trash

Can any of these libs be used for the Linux version of calibre to add support for trashing files?

Unfortunately I'm not a programmer, and so have no idea how to make calibre use these.

Thanks for the great software.

calibre has supported trash on linux for a *long* time.

Andrei (googleguy) wrote :

Thanks, it does work, I must've missed it. I guess I was also a tad confused about the status of this bug -- wontfix.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers