babluboy / bookworm

A simple ebook reader for Elementary OS
GNU General Public License v3.0
1.32k stars 101 forks source link

can't delete ebooks #322

Open fjcaro opened 4 years ago

fjcaro commented 4 years ago

I can't delete an ebook. When I select an ebook the "-" button is disabled and is not possible to delete it. Also, if I delete an ebook from disk, it still shows in the library but throws an error, and again, can't delete it.

OS: elementary hera

babluboy commented 4 years ago

Hi, apologies for the late response. Can you please try the following: 1- go to the folder where bookworm stores the cache: ~/.local/share/com.github.blabluboy.bookworm/ 2- in this folder there will be two folders for the book content and the book images, delete the ebook if it is present in these folders.

Hopefully that will take care of the issue. If it does not work can you please run bookworm in debug more and attach the debug file produced in your home directory: com.github.blabluboy.bookworm --debug > ~/bookworm_debug.txt

fjcaro commented 4 years ago

Hello, thanks for your response. I removed everything in books/ and covers/, and the books still show in the UI, but this time with dummy covers instead of original ones. I ran the app in debug mode and got the debug file. Also, in debug mode the following was printed in terminal when ebooks were clicked:

(com.github.babluboy.bookworm:5174): Gtk-WARNING **: 22:33:42.699: Negative content width -2147483648 (allocation -2147483648, extents 0x0) while allocating gadget (node progress, owner GtkProgressBar)

(com.github.babluboy.bookworm:5174): Gtk-WARNING **: 22:33:42.700: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node progress owner GtkProgressBar)

(com.github.babluboy.bookworm:5174): Gtk-WARNING **: 22:33:48.899: Negative content width -2147483648 (allocation -2147483648, extents 0x0) while allocating gadget (node progress, owner GtkProgressBar)

(com.github.babluboy.bookworm:5174): Gtk-WARNING **: 22:33:48.900: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node progress owner GtkProgressBar)

(com.github.babluboy.bookworm:5174): Gtk-WARNING **: 22:33:55.012: Negative content width -2147483648 (allocation -2147483648, extents 0x0) while allocating gadget (node progress, owner GtkProgressBar)

(com.github.babluboy.bookworm:5174): Gtk-WARNING **: 22:33:55.013: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node progress owner GtkProgressBar)

(com.github.babluboy.bookworm:5174): Gtk-WARNING **: 22:33:58.878: Negative content width -2147483648 (allocation -2147483648, extents 0x0) while allocating gadget (node progress, owner GtkProgressBar)

(com.github.babluboy.bookworm:5174): Gtk-WARNING **: 22:33:58.879: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node progress owner GtkProgressBar)

(com.github.babluboy.bookworm:5174): Gtk-WARNING **: 22:34:00.372: Negative content width -2147483648 (allocation -2147483648, extents 0x0) while allocating gadget (node progress, owner GtkProgressBar)

(com.github.babluboy.bookworm:5174): Gtk-WARNING **: 22:34:00.373: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node progress owner GtkProgressBar)

Screenshot from 2020-07-03 22-41-04 Screenshot from 2020-07-03 22-32-48 bookworm_debug.txt