![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
|
![]()
Is there currently a tweak or an option to specify calibre's temp directory?
I ask this because I've already excluded the calibre executables directory from my antivirus real time monitoring. I would also like to exclude the directory where calibre places its temporary files but I would not like to exclude %TEMP%. Many thanks |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,196
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
read the environment variables part of the customizing calibre section of the user manual
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
|
Quote:
I can see environment variables for storing configuration files and metadata.db, but not for specifying a directory where calibre saves temp files - those named "calibre_0.7.35_tmp__xxxxx". Quote:
|
||
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,196
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Ah I must have forgotten to add that. The relevant environment variable is TMP
|
![]() |
![]() |
![]() |
#5 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
|
Quote:
I've entered CALIBRE_TMP as a system variable with a value of D:\Calibre - which I'd like to use for calibre's temporary files -, but I guess it's not right because calibre still uses D:\TEMP - which is my system %TMP% . |
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
I think that you need to start a command shell and the set the TMP environment variable just before launching Calibre (overriding the system default setting for that run of Calibre).
|
![]() |
![]() |
![]() |
#8 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
|
Quote:
But then, that TMP variable will be used by other programs in the same session. What I'd really like would be the possibility of defining the temp directory for calibre. |
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
If you start Calibre via a shell script/batch file, then the setting only persists for that particular invocation.
|
![]() |
![]() |
![]() |
#10 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
|
Quote:
I start calibre from a batch file... Quote:
|
||
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Glad to hear that it worked.
Just a suggestion - you might want to start Calibre within the batch file using the START command as this starts Calibre in another process and the batch file window does not hang around. |
![]() |
![]() |
![]() |
#12 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
|
Quote:
Code:
START calibre.exe Many thanks, itimpi |
|
![]() |
![]() |
![]() |
#13 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
|
A quick follow-up.
I do not have any metrics but both calibre and the viewer open definitely faster after excluding the calibre temp dir from an antivirus real time scanning. But it looks like you have to point both TMP and TEMP environment variables to your calibre working directory. I guess this is because the application, some places looks after TMP and another after TEMP. But hey, this is the best app I've gotten my hands on in the latest couple of years. ![]() It would be great though to be able to configure this in calibre, like the way you can choose where to place your TIF folders in IE. Last edited by paulfiera; 12-29-2010 at 01:15 PM. |
![]() |
![]() |
![]() |
#14 | ||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
![]() Quote:
This would be nice, add to it the ability to enter where you want your configuration directory to be and I could dump my batch file. |
||
![]() |
![]() |
![]() |
#15 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
|
I've already submitted this as an enhancement request.
I don't think it would be so hard to implement Code:
Is usertemp defined then use usertemp else use temp environment Last edited by paulfiera; 12-30-2010 at 01:51 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] Why doesn’t calibre let me store books in my own directory structure? | darknessangel | Calibre | 68 | 08-24-2014 12:16 AM |
Opus Fonts directory for Calibre -> External CSS | fiery | Bookeen | 12 | 02-20-2011 10:05 PM |
Automatically Add Books to Calibre from Directory | pjd6896 | Calibre | 0 | 12-02-2010 09:15 PM |
moved location of Calibre home directory | asperger | Calibre | 2 | 04-06-2010 08:02 PM |
Calibre: directory location not remembered | JeffElkins | Calibre | 2 | 06-06-2008 08:53 PM |