![]() |
#16 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 858
Karma: 3461504
Join Date: Jan 2017
Location: Poland
Device: Various
|
|
![]() |
![]() |
![]() |
#17 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,797
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
SIGIL_USES_DARK_MODE maybe defunct, but SIGIL_PREFS_DIR is definitely active, I occasionally swap in "_AppData/Sigil/Prefs_default". BR PS: I assume use of the env-vars.txt file is optional. Last edited by BetterRed; 08-19-2025 at 06:48 PM. |
|
![]() |
![]() |
![]() |
#18 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,676
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() Of course. The file does not exist by default. Last edited by DiapDealer; 08-19-2025 at 07:37 PM. |
|
![]() |
![]() |
![]() |
#19 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,845
Karma: 169712582
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#20 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,676
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm loving this. So simple, so handy.
|
![]() |
![]() |
![]() |
#21 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,873
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Quote:
FWIW, I have tried to fix up the sigil-user-guide for future Sigil 2.6.2 release, with info on the env-vars.txt file. So if anyone is interested in vetting it and adding to it, please start by grabbing things from our sigil-user-guide repo master. I tried to add in the force native dialogs env var that was previously missing, remove some duplication and add a second advanced topics chapter on python function replace. Please take a peek and let me know if any changes are needed. I hope to officially release it in sync with Sigil 2.6.2. |
|
![]() |
![]() |
![]() |
#22 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 858
Karma: 3461504
Join Date: Jan 2017
Location: Poland
Device: Various
|
Thank you for your kind words.
SIGIL_PREFS_DIR is not Linux Only, although that is what the sigil-user-guide mentions. I will add in the plugin a special support for this variable, which will not be read from env-vars.txt file but simply by os.getenv(). |
![]() |
![]() |
![]() |
#23 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,873
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Okay, I updated the user guide and tried to better describe SIGIL_PREFS_DIR.
Should we rename SKIP_SIGIL_ to SIGIL_SKIP_ or just leave it as is? |
![]() |
![]() |
![]() |
#24 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 858
Karma: 3461504
Join Date: Jan 2017
Location: Poland
Device: Various
|
Alternatively, an intermediate output: rename, but support both versions.
An example precedent is here. In short: we promote the "SIGIL_*" environment variables in the documentation (and in the plugin), but both variables will work. |
![]() |
![]() |
![]() |
#25 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,797
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Could BeckyEbook's Env Var Editor be another panel or tab in Preferences - then maybe no need for the env-vars.txt man in the middle ?
Probably need to restart Sigil after using it. Last edited by BetterRed; Yesterday at 06:52 PM. |
![]() |
![]() |
![]() |
#26 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,873
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Quote:
Having a plugin gui handle this is perfect for those who want or need a gui in order to edit a text file. |
|
![]() |
![]() |
![]() |
#27 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,676
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Are you talking about renaming existing environment variables?
|
![]() |
![]() |
![]() |
#28 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 858
Karma: 3461504
Join Date: Jan 2017
Location: Poland
Device: Various
|
Yes. One of the variables (SKIP_SIGIL_UPDATE_CHECK) deviates a bit from the others because it doesn't start with "SIGIL_".
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
sigil does'nt load txt-files | ikkethuis | Sigil | 1 | 01-11-2021 01:46 PM |
Filename to File Tag and Setting File Dorectory | anonymust | Library Management | 3 | 11-07-2015 07:42 PM |
shebang problem "/usr/bin/env python2" | klonuo | Development | 2 | 10-21-2011 11:08 AM |
How can i convert HTML or txt file to EPUB file ? | guguqiaqia | ePub | 7 | 05-28-2010 09:15 PM |
Problem & fix to Windows dev env setup | ShellShock | Calibre | 6 | 12-07-2008 10:13 AM |