07-03-2010, 01:51 PM | #16 | ||
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If you want calibre to be designed differently than it is, submit enhancement tickets. A lot of them get implemented. Quote:
|
||
07-03-2010, 02:08 PM | #17 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Kovid has also coded the use of the CALIBRE_CONFIG_DIRECTORY environment variable so that you ould specify wher the config parameters should be read from for this run of Calibre, so that can be used instead of using two different accounts.
The point is that Calibre does not have a GUI based method of simultaneously switching both user preferences and databases. Since these are user preferences rather than library specific it makes sense for them to be store separately to the actual library database. Last edited by itimpi; 07-03-2010 at 02:10 PM. |
Advert | |
|
07-03-2010, 04:12 PM | #18 | ||
Groupie
Posts: 161
Karma: 608
Join Date: Aug 2008
Location: Plano, TX
Device: Sony PRS-505 + B&N Nook + Motion LE1700 + Motorola Xoom Wifi
|
Quote:
Quote:
Troy |
||
07-03-2010, 05:59 PM | #19 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
I think it's fair to say that the many recent improvements to Calibre have made a closer connection between the configuration files and the library. They were always connected, but not so closely that it caused problems if you changed the library without changing the configuration files. Now, that's no longer true.
Ultimately, I think we're probably going to need some enhancements or bug fixes for people who want to swap libraries so that the config directory is also swapped. Until then, we can change the configuration directory when we change the library with a batch file as discussed above. Alternatively, we can change the user when we change the library. Since the config files are associated with a user, this may be easier for some. |
07-04-2010, 04:04 AM | #20 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
For example, to start up my 'production' library (the one I never use while developing), I have a command file called calibre_prod.bat that runs the following two commands in a command box: Code:
set CALIBRE_CONFIG_DIRECTORY=C:\CBH_Data\calibre\config_production calibre FWIW: There is no problem having many configurations for one library, but there should be only one library for a configuration. FWIW bis: Adding a --with-configuration option is hard, because the configuration information is used before the options are looked at. |
|
Advert | |
|
07-04-2010, 09:17 AM | #21 | ||
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Quote:
|
||
07-04-2010, 09:49 AM | #22 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Its not really clear what config setting are library specific and what are not.
For instance hidden columns: I'm sure there are people (I'm one of them) that dont care who the publisher of a book is and so want that column hidden in every library. Or saved searches: I may use saved searches to find the newer books, unread books, etc that would be common across libraries. As it is, with the current setup of sharing those config values, as long as you are careful to have the same set of custom columns in each library, there should be no problem. |
07-04-2010, 11:12 AM | #23 |
Wizard
Posts: 2,013
Karma: 251649
Join Date: Apr 2010
Location: Tempe, AZ, USA, Earth
Device: JetBook Lite (away from home) + 1 spare, 32" TV (at home)
|
Sadly, different custom and hidden columns is one the two major reasons why I need separate libraries (the other being I do not want my sheet music and books junking each other up).
|
07-04-2010, 11:30 AM | #24 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Or, if you prefer, you can log out and log in as another user. |
|
07-04-2010, 01:48 PM | #25 | |
Wizard
Posts: 2,013
Karma: 251649
Join Date: Apr 2010
Location: Tempe, AZ, USA, Earth
Device: JetBook Lite (away from home) + 1 spare, 32" TV (at home)
|
Quote:
|
|
07-04-2010, 02:21 PM | #26 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
"C:\Users\Starson17\AppData\Roaming\calibre2" The old config will be at "C:\Users\Starson17\AppData\Roaming\calibre" Now make 2 bat files on your desktop as follows: right click on desktop and select New|New Text Document and change its name to CalibreLib1.bat Put this inside it with notepad: Code:
set CALIBRE_CONFIG_DIRECTORY=C:\Users\Starson17\AppData\Roaming\calibre calibre and change its contents to Code:
set CALIBRE_CONFIG_DIRECTORY=C:\Users\Starson17\AppData\Roaming\calibre2 calibre Now run the number 2, use preferences to set your #2 library and then never change libraries again with Preferences or the Wizard. One bat file will control lib1 and the other lib2. |
|
07-04-2010, 04:31 PM | #27 | |
Wizard
Posts: 2,013
Karma: 251649
Join Date: Apr 2010
Location: Tempe, AZ, USA, Earth
Device: JetBook Lite (away from home) + 1 spare, 32" TV (at home)
|
Quote:
|
|
07-04-2010, 06:16 PM | #28 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
The window to your config directory will still be open. You need to copy that directory. In my case, that directory is named: "C:\Users\Starson17\AppData\Roaming\calibre" I want you to move up one level to "C:\Users\Starson17\AppData\Roaming" and select the "calibre" directory. Then make a copy of it and call it "calibre2" At that point you will have two copies of your config directory in AppData\Roaming. Last edited by Starson17; 07-04-2010 at 06:20 PM. |
|
07-04-2010, 09:44 PM | #29 |
Wizard
Posts: 2,013
Karma: 251649
Join Date: Apr 2010
Location: Tempe, AZ, USA, Earth
Device: JetBook Lite (away from home) + 1 spare, 32" TV (at home)
|
Ok, I got to C:\Documents and Settings\Setup\Application Data. Where is Roaming? I see a folder named Calibre. Is this the one I need to copy?
|
07-05-2010, 04:24 AM | #30 | |
Zealot
Posts: 115
Karma: 150
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
|
Quote:
Check if the folder Calibre contains files like gui.py and global.py among others. If so make a copy of the folder and proceed as outlined in the previous posts, substituting the right path. Regards, Joop |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple Libraries | gandor62 | Calibre | 42 | 08-01-2012 11:23 AM |
Multiple libraries gone in 0.7.19 | goinveg | Calibre | 7 | 09-20-2010 02:48 PM |
Multiple Libraries Possible? | KeithO | Calibre | 38 | 02-19-2010 10:35 AM |
Multiple libraries? | netgirl | Calibre | 14 | 11-03-2009 10:13 AM |
Multiple libraries | StanByk | Calibre | 2 | 10-18-2009 01:42 PM |