![]() |
#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?
|
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,302
Karma: 23661992
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 | |
|
![]() |
#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:
|
|
![]() |
![]() |
#4 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,328
Karma: 58000000
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 ![]() |
![]() |
Advert | |
|
![]() |
#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. |
|
![]() |
![]() |
#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. |
|
![]() |
![]() |
#8 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,865
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. |
|
![]() |
![]() |
#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. |
|
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,302
Karma: 23661992
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. |
![]() |
![]() |
#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. |
|
![]() |
![]() |
#12 | |||||||
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,302
Karma: 23661992
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. |
|||||||
![]() |
![]() |
#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. |
||||||
![]() |
![]() |
#14 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,302
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
> /dev/null
|
![]() |
![]() |
#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. |
![]() |
![]() |
|
![]() |
||||
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 |