![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2013
Device: kindle, nook, kobo
|
CalibrePortable: Temp dir?
I was wondering if Calibre Portable also changes its 'TEMP' working directory, or if it still uses the default TEMP / TMP environment variable, or what?
I can think of good reasons why it should keep everything, including temp files, within the portable directory, but I can also think of a good reason (speed of USB) why it might still want to use the default. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
It uses the normal system TEMP folder which is defined via the TEMP/TMP environment variable.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,307
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you want the temp directory in any particular place just set the appropriate environment variable http://manual.calibre-ebook.com/cust...ment-variables
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2013
Device: kindle, nook, kobo
|
I knew it could be forced, by several different ways.
I was more concerned about what it did by default. Whether it was fully up to the user or whether it was smarter and automatic. Since it is portable, it shouldn't be writing to any other drive. And since you never know what drive letter a USB device will be (unless you force it in windows), it makes it inconvenient. Like I said, I was just wondering if the CalibrePortable wrapper took care of the TEMP & TMP environmental variables too or had forgot about them. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
I do not think writing to the systems TEMP folders is an issue or an oversight, but intentional. In fact writing to the portable drive (which is often a USB stick is likely to adversely affect its life as well as being bad for performance.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,009
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
In addition, most systems, users can't function (very much) without some kind of TEMP writing.
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2013
Device: kindle, nook, kobo
|
'TheDucks', I'm not suggesting there be no TEMP writing. I'm suggesting it optionally be on the portable device itself. The whole concept of 'portable' is that something is as self contained as possible.
'itimpi', For a usb flash drive, it could be a problem. For a portable usb hard drive, it's not. And by keeping it on your C: drive, you 1) keep using it while you might be trying to do something else. Possibly significant with a slow laptop drive. (Pretty much a given with most laptops, I guess.) But even with a desktop hard drive, that increases the thrashing while you are doing something else besides letting Calibre process a bunch of files or do a bulk conversion, etc. etc. 2) if your C: drive is a SSD, and your CalibrePortable is on a usb hard drive (along with other portable apps & data), then yhou are unnecessarily using up your SSD life span. |
![]() |
![]() |
![]() |
#8 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,307
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
Putting frequently accessed/created files that are all removed anyway when calibre quits on a USB disk is just wrong. |
|
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2013
Device: kindle, nook, kobo
|
Kovidgoyal, I didn't say portable *MEANS* that. I said it *SHOULD* do that.
And again, not everything in this world is a USB flash drive. Lots of us use usb portable hard drives. They are cheaper, hold more, and are faster than flash drives. And in my experience, just as convenient with much less chance of being lost. Putting temporary stuff like what Calibre generates onto a SSD C:\ drive is just plain wasteful. It's the same argument against putting them onto a USB flash drive, except that a SSD costs a lot more money and is much more valuable & useful. The flash cells they use have the same write life span, except a SSD is better at hiding it because of the over provisioning they all do and tricks such as compression that some do. If it was just a few K or Meg, then it would be irrelevant. But during conversions, cleanup etc., Calibre will generate far more than the size of the epub or mobi files it's working with. It adds up. Even including something like a batch file like this would help set TEMP=%CD%\Temp set TMP=%TEMP% Calibre-Portable.exe and have a TEMP directory in the portable calibre directory. |
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,307
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
And I'm saying that it *SHOULD* not. If you are worried about your SSD then you should be changing your system wide temp folder, in which case calibre will not be using your SSD in any case, since it uses the system wide temp folder.
|
![]() |
![]() |
![]() |
#11 | |||
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
set CALIBRE_TEMP_DIR=%CD%\Temp Quote:
Quote:
Last edited by ilovejedd; 05-21-2013 at 09:04 PM. |
|||
![]() |
![]() |
![]() |
#12 | |||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#13 | |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
As for calibrePortable from PortableApps.com, the \App\AppInfo\Launcher\calibrePortable.ini file just needs to be edited after which you can run calibrePortable as normal. Code:
[Environment]
CALIBRE_CONFIG_DIRECTORY=%PAL:DataDir%\settings\config
PATH=%PAL:AppDir%\Calibre
+ CALIBRE_TEMP_DIR=%PAL:DataDir%\temp
Last edited by ilovejedd; 05-22-2013 at 01:15 AM. |
|
![]() |
![]() |
![]() |
#14 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,307
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#15 |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Not from portableapps.com but from one of the MR forum members. Then again, my memory might be failing me as that's probably a year ago or something. Maybe I was just thinking of calibre-portable.bat. I didn't know about portableapps.com's calibrePortable until version 0.8 and I know I've been using calibre in portable form ever since 0.5/0.6 (might even be 0.4, I think that's when CALIBRE_CONFIG_DIRECTORY was added).
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
(#) in the dir name, at the end | tsolignani | Library Management | 4 | 02-04-2013 03:03 AM |
Help with replicating dir structure | maxpall | Library Management | 15 | 09-03-2012 03:54 AM |
Lost.Dir | musicman2523 | PocketBook | 2 | 03-20-2011 11:29 AM |
[bug] problem using calibreportable.bat | Dopedangel | Calibre | 4 | 12-22-2010 03:47 AM |
CalibrePortable from PortableApps.com | lol | Calibre | 10 | 01-10-2010 08:33 PM |