Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 09-16-2022, 05:31 PM   #16
mblrdr
Enthusiast
mblrdr began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Feb 2022
Device: none
Quote:
Originally Posted by kovidgoyal View Post
I'm fine with changing the default library location if needed, but unfortunately I am traveling for the next few days so I cant look into it. Feel free to opena bug report about it and I will adress it when I get back.
This has never been adressed it seems.

Calibre portable always defaults to (in my case) d:\_PortableApps\Calibre x64 portable\Calibre Library

You can choose another library by quick switching but after a new start it always defaults back to Calibre Library folder in its relative path.

I tried to manually set the default library to my existing library but it is ignored after a restart.

Even deleting this relative folder doesn't help. It is created at every new start.

And it always is listed in the quick switch selection.

So why is that? I can see no reason for this behaviour.

Please give us an option to remember the default library in calibre portable.

Would this be possible?

Thx
mblrdr is offline   Reply With Quote
Old 09-16-2022, 06:13 PM   #17
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by mblrdr View Post
This has never been adressed it seems.

Calibre portable always defaults to (in my case) d:\_PortableApps\Calibre x64 portable\Calibre Library

You can choose another library by quick switching but after a new start it always defaults back to Calibre Library folder in its relative path.

I tried to manually set the default library to my existing library but it is ignored after a restart.

Even deleting this relative folder doesn't help. It is created at every new start.

And it always is listed in the quick switch selection.

So why is that? I can see no reason for this behaviour.

Please give us an option to remember the default library in calibre portable.

Would this be possible?

Thx
The clue is in the word "Portable", the design intent is that you install Calibre Portable on a removable storage device, put it in your pocket, and plug it in to different computers as you move between your home, workplace, beach house, yacht, ski lodge etc.

If you drop a symlink to a calibre library into the Calibre Portable folder you can hook it in the normal way via the Library->Create/Switch dialogue and it will 'stick'. This has been available ever since Calibre Portable was released.

The MKLINK command can be used to create symlinks (symbolic links), and there are third party GUI tools to make it easier, I use one called Link Shell Extension.

BR
BetterRed is offline   Reply With Quote
Advert
Old 09-16-2022, 08:24 PM   #18
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,171
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Yep to the symbolic link.

I wanted to play with both calibre 5 AND 6. So I left my existing non portable calibre 5 install in place, installed calibre 6 portable. Created a symbolic link in the portable install to my existing calibre 5 library, copied the preferences from 5 to portable and tada.

I can run 5 as is, and 6 portable. The only difference is the configuration directory.

Expect me in the near future to add in a few more portable versions.

Sent from my Pixel 4a using Tapatalk
PeterT is offline   Reply With Quote
Old 09-16-2022, 08:50 PM   #19
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by PeterT View Post
Yep to the symbolic link.

I wanted to play with both calibre 5 AND 6. So I left my existing non portable calibre 5 install in place, installed calibre 6 portable. Created a symbolic link in the portable install to my existing calibre 5 library, copied the preferences from 5 to portable and tada.

I can run 5 as is, and 6 portable. The only difference is the configuration directory.
You can symlink your "normal" config and rename it, viz:

Click image for larger version

Name:	Screenshot 2022-09-17 104133.jpg
Views:	423
Size:	177.0 KB
ID:	196586

Symlink names don't have to be the same as the target name.

BR
BetterRed is offline   Reply With Quote
Old 09-16-2022, 09:01 PM   #20
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,171
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
I know I could but I *wanted* to have the ability to have differing versions of plugins, especially during the early beta versions of 6.

Sent from my Pixel 4a using Tapatalk
PeterT is offline   Reply With Quote
Advert
Old 09-16-2022, 10:29 PM   #21
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: 43,864
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
simply run calibre.exe instead of calibre-portable.exe if you want it to behave like normal calibre.
kovidgoyal is offline   Reply With Quote
Old 09-17-2022, 07:44 AM   #22
mblrdr
Enthusiast
mblrdr began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Feb 2022
Device: none
Quote:
Originally Posted by BetterRed View Post
The clue is in the word "Portable", the design intent is that you install Calibre Portable on a removable storage device, put it in your pocket, and plug it in to different computers as you move between your home, workplace, beach house, yacht, ski lodge etc.

If you drop a symlink to a calibre library into the Calibre Portable folder you can hook it in the normal way via the Library->Create/Switch dialogue and it will 'stick'. This has been available ever since Calibre Portable was released.

The MKLINK command can be used to create symlinks (symbolic links), and there are third party GUI tools to make it easier, I use one called Link Shell Extension.

BR
Yes I know about Link Shell Extension and MKLINK but I just want to remember calibre itself the default library.

Even if Link Shell Extension is fairly simple it adds another layer, program and hassle for unexperienced people so it should be avoided in the frist place.

This function should be in calibre portable itself (and it is in calibre installed version afaik).

And I see no reason why this static folder is always created by default instead of simply using the set folder.

So why is that? Seems more like a bug than a feature to me.
mblrdr is offline   Reply With Quote
Old 09-17-2022, 07:53 AM   #23
mblrdr
Enthusiast
mblrdr began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Feb 2022
Device: none
Quote:
Originally Posted by kovidgoyal View Post
simply run calibre.exe instead of calibre-portable.exe if you want it to behave like normal calibre.
Sorry I don't understand your suggestion.

There's only calibre-portable.exe in the portable folder. Do you mean one should copy calibre.exe from an installed version in the portable folder and run it?

Would you consider changing calibre portable so that it remembers the default library? And it should also not create a library folder inside the portable folder everytime.

It's time consuming and frustrating and makes no sense to me.

Thx!!
mblrdr is offline   Reply With Quote
Old 09-17-2022, 11:12 AM   #24
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: 43,864
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No run the calibre.exe from inside the Calibre folder in the portable installation. And no portable is not going to be changed, its is working as intended.
kovidgoyal is offline   Reply With Quote
Old 09-17-2022, 12:05 PM   #25
mblrdr
Enthusiast
mblrdr began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Feb 2022
Device: none
If I run calibre.exe:

a} all my former settings are gone.

b) That is because if I run calibre.exe as suggested by you it will create (in my case) c:\Users\user\AppData\Roaming\calibre\

That is not the concept of portable and it is a bad advive as now I got all the "trash" in \AppData\Roaming that I wanted to avoid in the first place by using calibre as a portable version

So I don't recommend anybody interested in a portable concept doing this.

I'd really like to understand your decision of not changing the behaviour as calibre is a fantastic software. So I ask politely for your reasons of creating an default library folder and not be able to change that.

No offense just curious.
mblrdr is offline   Reply With Quote
Old 09-17-2022, 05:33 PM   #26
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by mblrdr View Post
If I run calibre.exe:

a} all my former settings are gone.

b) That is because if I run calibre.exe as suggested by you it will create (in my case) c:\Users\user\AppData\Roaming\calibre\

That is not the concept of portable and it is a bad advive as now I got all the "trash" in \AppData\Roaming that I wanted to avoid in the first place by using calibre as a portable version

So I don't recommend anybody interested in a portable concept doing this.

I'd really like to understand your decision of not changing the behaviour as calibre is a fantastic software. So I ask politely for your reasons of creating an default library folder and not be able to change that.

No offense just curious.
If you install the non-portable (.MSI) version, you can relocate %APPDATA%\calibre directory to another location via the CALIBRE_CONFIG_DIRECTORY Environment variable.

If you look at the screenshot in post #19 you'll see I have it at C:\_AppData\Calibre\Config_64bit.

BR
BetterRed is offline   Reply With Quote
Old 09-18-2022, 09:37 AM   #27
mblrdr
Enthusiast
mblrdr began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Feb 2022
Device: none
Quote:
Originally Posted by BetterRed View Post
If you install the non-portable (.MSI) version, you can relocate %APPDATA%\calibre directory to another location via the CALIBRE_CONFIG_DIRECTORY Environment variable.

If you look at the screenshot in post #19 you'll see I have it at C:\_AppData\Calibre\Config_64bit.

BR
Thank you for your explanation an effort. I apprechiate that.

Still I don't like the concept of symbolic links here. Explain mklink to my mum, grandma or children

Either its:

a) using calibre portable with no way of changing the defaut library. This library is also always listed in quick switch which is unnescessary.

Furthermore the folder is recreated anytime you run calibre portable

> That's the decision I don't understand. I get it that the developer maybe wants to assure the library folder always exists but that's not a good way imho. "Works as intended" what can I do other than ask politely to overthink that "bug"?

b) using calibre.exe creates all the stuff in \AppData that a normal install also does (that's not the concept of a portable version)

c) make symbolic links to that \AppData is also not the preferred way as I only want to change the default library not the whole config folder.

So I could create a symbolic link for the library sure. Again this is not feasable for a day to day use by normal users.


Solution would be calibre portable would either have the option to remember the last library and not recreate an unnescessary folder or calibre portable would respect environment variables.

But as environmentl variables only have CALIBRE_CONFIG_DIRECTORY I suggest the following:

1. Create a new environmental variable CALIBRE_DEFAULT_LIBRARY
2. Make calibre and calibre portable!!! aware of environment variables

Done

Last edited by mblrdr; 09-18-2022 at 09:44 AM.
mblrdr is offline   Reply With Quote
Old 09-18-2022, 05:58 PM   #28
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
If Calibre-Portable was aware of Environment Variables it wouldn't be portable.

If you have Calibre-Portable installed on non-portable storage can I ask - why?

I have it installed on an internal drive so that I can 'test' new versions, plugins, configuration and customisation options etc.

BR
BetterRed is offline   Reply With Quote
Old 09-19-2022, 03:28 AM   #29
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,018
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by BetterRed View Post
If you have Calibre-Portable installed on non-portable storage can I ask - why?
I have a portable install on an internal SSD. and my libraries are in the portable install dir, where it expects them to be, so that I can do easy syncs to an external SSD and my NAS and have them be self-contained Calibre installs. I used to have a normal 64-bit install on the PC the SSD is in, but now that portable is 64 bit as well, I simply use that.
mbovenka is offline   Reply With Quote
Old 09-19-2022, 08:43 AM   #30
mblrdr
Enthusiast
mblrdr began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Feb 2022
Device: none
Quote:
Originally Posted by BetterRed View Post
If Calibre-Portable was aware of Environment Variables it wouldn't be portable.

If you have Calibre-Portable installed on non-portable storage can I ask - why?

I have it installed on an internal drive so that I can 'test' new versions, plugins, configuration and customisation options etc.

BR
What does a variable like CALIBRE_DEFAULT_LIBRARY has to do with portability? Just set it and use as usual.

You misunderstand me. I soley run calibre in portable mode not installed. Got all my portable programs in d:data (see below posting) seperated from my system + on an external ssd (backup + portability on foreign laptops, i do IT stuff)

I used to do 64x installs to modify my x32 portable version with the x64 files. But the developer was so kind to update also the portable variant to x64.

Last edited by mblrdr; 09-19-2022 at 08:56 AM.
mblrdr is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default location on device? tomx2 Library Management 3 06-23-2018 10:06 AM
Default Calibre import folder thrasherdave Library Management 2 08-28-2015 12:55 AM
Suggestion: change default library folder location so it's backed up by Win7 Backup robcohen Devices 2 02-24-2012 01:50 AM
Adding books with calibre default folder structure Noughty Library Management 0 04-15-2011 08:18 AM
Calibre default folder problem jukin Calibre 3 12-20-2010 07:49 PM


All times are GMT -4. The time now is 05:21 AM.


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