Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 02-03-2025, 07:26 PM   #1
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 42,365
Karma: 162918680
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Calibre CALIBRE_DEVELOP_FROM oddity

I run calibre from source most of the time however I wanted to test an issue and so changed the variable name to not run from source. This worked until I closed calibre. The next time I opened calibre, it ran from source. I check the environmental variables and the variable name was unchanged however when I ran set from the command line, it showed both the original and modified variables.

Is this expected behaviour?

CALIBRE_DEVELOP_FROM=D:\calibre\calibre-master\src

DNU_CALIBRE_DEVELOP_FROM_DNU=D:\calibre\calibre-master\src
DNSB is offline   Reply With Quote
Old 02-03-2025, 09:10 PM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,159
Karma: 201666666
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You've verified there's not a user AND system variable?
DiapDealer is online now   Reply With Quote
Advert
Old 02-03-2025, 10:04 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 42,365
Karma: 162918680
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
The only variable is a system variable. I've restarted Windows 4 times and the original variable without the DNU's did not show in the environmental variables list. I then ran calibre between 4 and 7 times and the * indicating running from source popped back up. From a command prompt, set then showed the CALIBRE_DEVELOP_FROM variable had returned.

Since no one else seems to have noticed this issue, I'm going to be digging into the guts of my system to see if I can find what I've done to trigger this weirdness.
DNSB is offline   Reply With Quote
Old 02-04-2025, 01:56 PM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,216
Karma: 7955067
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
If it is a SYSTEM environment variable then you must use setx to change it. See https://learn.microsoft.com/en-us/wi...-commands/setx. The change is permanent, written to the registry. You will need another setx to reset it

I solve this problems with batch files: one to set both the from-source env var and config directory env var then start calibre-debug, another to set only the config directory env var then start calibre-debug. I don't have a system env var set.

Last edited by chaley; 02-04-2025 at 06:42 PM. Reason: Grammar
chaley is offline   Reply With Quote
Old 02-04-2025, 05:02 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,632
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
does SET at a command (user level) prompt show system variables?
SET at a Command (admin) prompt show lots more
theducks is offline   Reply With Quote
Advert
Old 02-04-2025, 06:58 PM   #6
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: 21,296
Karma: 29265622
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
. . .

I solve this problems with batch files:
I resolve EnvVar issues with this ==> https://www.rapidee.com/en/about

BR
BetterRed is offline   Reply With Quote
Old 02-05-2025, 04:36 AM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 42,365
Karma: 162918680
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by chaley View Post
If it is a SYSTEM environment variable then you must use setx to change it. See https://learn.microsoft.com/en-us/wi...-commands/setx. The change is permanent, written to the registry. You will need another setx to reset it

I solve this problems with batch files: one to set both the from-source env var and config directory env var then start calibre-debug, another to set only the config directory env var then start calibre-debug. I don't have a system env var set.
I just use the built-in system environment variable editor from the System Properties tool. I did play with batch files but don't switch enough to make it worthwhile.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2025-02-05 003137.png
Views:	15
Size:	22.9 KB
ID:	213435  
DNSB is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre menu oddity DNSB Calibre 11 12-11-2023 11:06 PM
Error occurs on starting ebook-viewer after setting CALIBRE_DEVELOP_FROM Jasonz Development 2 09-29-2022 03:51 AM
Oddity - 2 instances of calibre side by side BetterRed Calibre 10 04-15-2015 08:20 AM
Calibre News Folder Oddity MR. Pockets Calibre 7 09-02-2010 10:35 PM
CALIBRE_DEVELOP_FROM and ebook-viewer iain_benson Calibre 2 01-11-2010 05:57 PM


All times are GMT -4. The time now is 08:31 AM.


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