Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-28-2010, 11:21 AM   #1
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
Question Calibre working directory

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
paulfiera is offline   Reply With Quote
Old 12-28-2010, 11:30 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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
kovidgoyal is offline   Reply With Quote
Advert
Old 12-28-2010, 11:38 AM   #3
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
Quote:
Originally Posted by kovidgoyal View Post
read the environment variables part of the customizing calibre section of the user manual
Many thanks, Kovid

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:
•CALIBRE_CONFIG_DIRECTORY - sets the directory where configuration files are stored/read.
•CALIBRE_OVERRIDE_DATABASE_PATH - allows you to specify the full path to metadata.db. Using this variable you can have metadata.db be in a location other than the library folder. Useful if your library folder is on a networked drive that does not support file locking.
•CALIBRE_DEVELOP_FROM - Used to run from a calibre development environment. See Setting up a calibre development environment.
•CALIBRE_OVERRIDE_LANG - Used to force the language used by the interface (ISO 639 language code)
•CALIBRE_DISABLE_UDISKS - Used to disable the use of udisks for mounting/ejecting. Set it to 1 to use calibre-mount-helper instead.
•SYSFS_PATH - Use if sysfs is mounted somewhere other than /sys
•http_proxy - Used on linux to specify an HTTP proxy
Maybe I am not looking at the right place?
paulfiera is offline   Reply With Quote
Old 12-28-2010, 11:50 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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
kovidgoyal is offline   Reply With Quote
Old 12-28-2010, 11:56 AM   #5
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
Quote:
Originally Posted by kovidgoyal View Post
Ah I must have forgotten to add that. The relevant environment variable is TMP
Thanks again.

But where do I enter that env. variable in calibre? We are not talking about system environment variables, right?
paulfiera is offline   Reply With Quote
Advert
Old 12-28-2010, 12:53 PM   #6
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
Quote:
Originally Posted by kovidgoyal View Post
Ah I must have forgotten to add that. The relevant environment variable is TMP
Hi Kovid

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% .
paulfiera is offline   Reply With Quote
Old 12-28-2010, 12:55 PM   #7
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
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).
itimpi is offline   Reply With Quote
Old 12-28-2010, 01:01 PM   #8
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
Quote:
Originally Posted by itimpi View Post
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).
Thanks, itimpi.

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.
paulfiera is offline   Reply With Quote
Old 12-28-2010, 01:45 PM   #9
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
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.
itimpi is offline   Reply With Quote
Old 12-29-2010, 05:01 AM   #10
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
Quote:
Originally Posted by itimpi View Post
If you start Calibre via a shell script/batch file, then the setting only persists for that particular invocation.
Many thanks, itimpi. It works.

I start calibre from a batch file...

Quote:
SET TEMP=d:\calibre
"C:\Program Files\Calibre2\calibre.exe"
... and calibre stores the temp files in d:\calibre.
paulfiera is offline   Reply With Quote
Old 12-29-2010, 05:27 AM   #11
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
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.
itimpi is offline   Reply With Quote
Old 12-29-2010, 06:50 AM   #12
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
Posts: 387
Karma: 3102
Join Date: Dec 2010
Location: EU
Device: Kobo Aura ONE, Kobo Libra H20
Quote:
Originally Posted by itimpi View Post
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.
Perfect.

Code:
START calibre.exe
Calibre exe is already in the PATH environment variable.

Many thanks, itimpi
paulfiera is offline   Reply With Quote
Old 12-29-2010, 12:08 PM   #13
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
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.
paulfiera is offline   Reply With Quote
Old 12-29-2010, 10:03 PM   #14
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by paulfiera View Post
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.
I too noticed some improvement. Every little bit helps.

Quote:
Originally Posted by paulfiera View Post
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.
Thanks for the info, I added this to my batch file.

Quote:
Originally Posted by paulfiera View Post
It would be great though to be able to configure this in calibre
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.
DoctorOhh is offline   Reply With Quote
Old 12-30-2010, 01:48 PM   #15
paulfiera
Addict
paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.paulfiera could sell banana peel slippers to a Deveel.
 
paulfiera's Avatar
 
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
That's the idea of it. Nothing that would break existing installations.

Last edited by paulfiera; 12-30-2010 at 01:51 PM.
paulfiera is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:16 PM.


MobileRead.com is a privately owned, operated and funded community.