Skip to content

Commit 669e4a8

Browse files
add info on new env-vars.txt file to user guide
1 parent 94c31b2 commit 669e4a8

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

src/OEBPS/Text/advanced_topics.xhtml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,19 @@
1313
<h2 id="atenv">Using Sigil's Environment Variables</h2>
1414

1515

16-
<p>Some rarely needed settings in Sigil are controlled by "Environment Variables". An environment variable is a user-definable value that can affect the way running processes will behave on a computer. See <a href="https://en.wikipedia.org/wiki/Environment_variable">https://en.wikipedia.org/wiki/Environment_variable&gt;</a> for more information on setting and using environment variables on your computer.</p>
16+
<p>Some rarely needed settings in Sigil are controlled by "Environment Variables". An environment variable is a user-definable value that can affect the way running processes will behave on a computer. See <a href="https://en.wikipedia.org/wiki/Environment_variable">https://en.wikipedia.org/wiki/Environment_variable</a> for more information on setting and using environment variables on your computer. Starting with Sigil 2.6.2, we have tried to make the process of setting and changing Sigil's environment variables much easier. With that release or later you can now simply use any text editor you want (Notepad, BBedit, emacs, vi, kate, etc) and create a file called "env-vars.txt" inside your Sigil Preferences folder. Add each environment variable and its value, one per line, in the following format:</p>
17+
18+
<p>ENVIRONMENT_VARIABLE_NAME=VALUE</p>
19+
20+
<p> where you replace ENVIRONMENT_VARIABLE_NAME with one of the environment variable names listed below and replace the VALUE with the what you want to set whether it is numeric or string or the value 1 for true. No quotes are used. For example:</p>
21+
22+
<p>SIGIL_DISABLE_VERSION_META=1</p>
23+
24+
<div class="tip">
25+
<p class="tiptext">Remember, if you open Sigil's Preferences via the menu you can use a button on the bottom left to have it show you where your Sigil Preferences folder is located.</p>
26+
</div>
27+
28+
<p>Then save this file. Please note Sigil will only read this file when it is first launched, so remember to close and exit out of Sigil before making any changes to your env-vars.txt file and restart Sigil after the change.</p>
1729

1830
<p>Sigil Uses the following Environment Variables:</p>
1931

@@ -273,4 +285,4 @@ QFrame QToolButton#count {
273285
<li><a href="https://doc.qt.io/qt-6/stylesheet-reference.html">https://doc.qt.io/qt-6/stylesheet-reference.html</a></li>
274286
</ul>
275287
</body>
276-
</html>
288+
</html>

src/OEBPS/Text/preferences.xhtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@
374374
<li><span class="listheading">custom_preview_style_alt.css</span>: Optional alternative CSS for Preview.</li>
375375

376376
<li><span class="listheading">hunspell_dictionaries:</span> Where any standard dictionaries you add are stored.</li>
377+
<li><span class="listheading">env-vars.txt:</span> a user created text file for setting Sigil environment variables. Starting with Sigil 2.6.2</li>
377378

378379
<li><span class="listheading">local-devtools:</span> Where data for Preview’s Inspector is stored.</li>
379380

@@ -438,4 +439,4 @@ QComboBox { font-size: 16pt }
438439

439440
<p>Note: Applying such CSS can possibly adversely affect the visibility of some styled elements within an EPUB, depending on what CSS has already been applied via the EPUB and how.</p>
440441
</body>
441-
</html>
442+
</html>

0 commit comments

Comments
 (0)