09-15-2016, 11:05 PM | #1 |
Banned
Posts: 666
Karma: 1752814
Join Date: Jan 2008
Device: Sony Reader PRS-505 : Onyx Boox Max : Sony PRS-900 : Onyx Kepler Pro
|
Calibre trash dir?
I was doing some filesystem maintenance and I noticed a dir that had a large number of files. Upon investigation it seemed to be full of epubs and other ebook formats. The dir is ~/.local/share/Trash. Does this dir have something to do with Calibre?
|
09-15-2016, 11:20 PM | #2 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That is your system recycle bin. When you delete books in calibre they are placed in the recycle bin. If whatever desktop env you are running does not expire the trash automatically, then you need to setup a cron job to do it for you, there are various scripts floating around that do that.
|
Advert | |
|
09-15-2016, 11:42 PM | #3 | |
Banned
Posts: 666
Karma: 1752814
Join Date: Jan 2008
Device: Sony Reader PRS-505 : Onyx Boox Max : Sony PRS-900 : Onyx Kepler Pro
|
Quote:
|
|
09-18-2016, 09:47 AM | #4 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
09-18-2016, 12:23 PM | #5 |
Well trained by Cats
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
The Dir may be hidden, but there should have been a 'Trash' type icon to manage that.
Did the user throw the 'Trash' out with the Trash when cleaning their 'desktop'? |
Advert | |
|
09-18-2016, 05:16 PM | #6 | |
Banned
Posts: 666
Karma: 1752814
Join Date: Jan 2008
Device: Sony Reader PRS-505 : Onyx Boox Max : Sony PRS-900 : Onyx Kepler Pro
|
Quote:
Umm actually it has everything to do with Calibre. How exactly do you think the files got there? It has nothing to do with the OS as I stated previously, I don't use a destop env. |
|
09-18-2016, 05:18 PM | #7 | |
Banned
Posts: 666
Karma: 1752814
Join Date: Jan 2008
Device: Sony Reader PRS-505 : Onyx Boox Max : Sony PRS-900 : Onyx Kepler Pro
|
Quote:
I have fixed this by sym-linking the trash dir to /dev/null. |
|
09-18-2016, 10:56 PM | #8 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
I'm glad you came up with a solution. |
|
09-19-2016, 12:03 AM | #9 | |
Banned
Posts: 666
Karma: 1752814
Join Date: Jan 2008
Device: Sony Reader PRS-505 : Onyx Boox Max : Sony PRS-900 : Onyx Kepler Pro
|
Quote:
I wonder if there is a setting somewhere to just straight remove files or if everyone who uses calibre and doesn't use KDE/GNOME/$DESKTOPENV should check their dot files. |
|
09-19-2016, 12:19 AM | #10 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Your system has no way to signal to applications that its recycle bin does not exist/is non-functional. Every other operating system has a well-defined API for recycle bins that the user can configure however they like, including disabling that functionality, centrally. In typical Linux fashion, all there is is a half digested spec for a few folder locations, that people like you feel free to ignore and then blame other people for when your expectations break.
It is not calibre's job to somehow read your mind and figure out what you want. You want to break the commonly used paradigm of the recycle bin, then it is up to you to break it in a way that does not break software that depends on it. For instance, I too dont use a desktop environment, but I long ago setup a script to deal with the recycle bin in a fashion I like. I certainly did not whine that it is every application maintainers job to provide a setting to cater for my special snowflake setup. |
09-19-2016, 12:34 AM | #11 | |
Banned
Posts: 666
Karma: 1752814
Join Date: Jan 2008
Device: Sony Reader PRS-505 : Onyx Boox Max : Sony PRS-900 : Onyx Kepler Pro
|
Quote:
My expectation is that deleted files are in fact, deleted. My system is not a special snowflake, it is a regular linux system running a regular window manager. Hardly an outside use case. As for it being up to me to deal with software expectations without breakage, I have done so. If you would read my initial reply to you, all I ask is a heads up. I expect everyone who is capable of running *nix to be able to deal with these developer decisions, but something in the way of documentation would be nice. Once again, in closing, I'm not whining about your software, I pointed out a very common use case for linux and it could have been left there. I don't appreciate being attacked for asking a question and defending myself against erroneous statements. You said: For instance, I too dont use a desktop environment, but I long ago setup a script to deal with the recycle bin in a fashion I like. That's great for you. Tell me, how did you learn about that recycle bin? Did the fact that you wrote the app inform your understanding or did you stumble across it as a surprise? Once again, Mr Sensitive, I'm not attacking your app. I'm asking for a heads up for people who aren't using desktop envs, which appears to be what your app is aimed for. |
|
09-19-2016, 12:59 AM | #12 | |||||||
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Last edited by kovidgoyal; 09-19-2016 at 01:01 AM. |
|||||||
09-19-2016, 01:12 AM | #13 | ||||||
Banned
Posts: 666
Karma: 1752814
Join Date: Jan 2008
Device: Sony Reader PRS-505 : Onyx Boox Max : Sony PRS-900 : Onyx Kepler Pro
|
Quote:
Quote:
Quote:
Quote:
Quote:
If I didn't do and was competent in all of the above, why would I have even been in a position to find and ask about your hidden dir in the first place? Thanks for moving deleted files into hidden directories with no notification to the users. It's fine. Whatever other weirdness your app may do will, of course, be found and dealt with and hopefully forums like this will continue to serve as information for those use cases that need it. Quote:
Last edited by sealbeater; 09-19-2016 at 01:16 AM. |
||||||
09-19-2016, 01:20 AM | #14 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
> /dev/null
|
09-19-2016, 01:22 AM | #15 |
Banned
Posts: 666
Karma: 1752814
Join Date: Jan 2008
Device: Sony Reader PRS-505 : Onyx Boox Max : Sony PRS-900 : Onyx Kepler Pro
|
Last edited by sealbeater; 09-19-2016 at 01:24 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DIR-685 as storage for Calibre Companion ? | ekarahman | Calibre | 4 | 07-24-2013 09:30 AM |
Delete V. Send to Trash | rolgiati | Library Management | 1 | 07-08-2013 05:07 PM |
302 Further 302 issues...any suggestions (other than the trash?) | guyanonymous | PocketBook | 21 | 10-11-2011 09:34 PM |
New Romance Novel: Trash Course | stevenharper | Self-Promotions by Authors and Publishers | 2 | 10-21-2010 10:11 PM |
Cybook is trash. | troutyluc | Bookeen | 6 | 06-15-2008 12:16 PM |