View Single Post
Old 05-28-2019, 08:31 PM   #6
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,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by BetterRed View Post
I assumed the <SIGIL_DEFAULT_TEMP_HOME> was an oblique reference to an Environment Variable. I discovered it wasn't after some experimentation with an environment variable editor; took me a while to fathom it is probably an oblique reference to a #define in the code.
Nope. It's a placeholder. Nothing more. It's an easy way to tell if the default setting has been changed. It's apropos of nothing.

Quote:
Originally Posted by BetterRed View Post
The Open With <whatever> will open selected file in the Sigil-xxxxx directory Sigil creates in the <SIGIL_DEFAULT_TEMP_HOME> directory.


Here's me editing one of the xhtml files in an epub using Notepad++ that I initiated via Sigil's Open With feature.
And?



Quote:
Originally Posted by BetterRed View Post
Does that explain why it's not an environment variable, i have had Mac users tell me, disdainfully, that Macs don't have environment variables because they (envars) are another 'crappy' Windows 'thing' Ψ³
Anyone who tells you that environment variables are another crappy Windows thing is an idiot.

Quote:
Originally Posted by BetterRed View Post
OT and FWIW: The environment variable SIGIL_PREFS_DIR can be used to relocate the location of Sigil's Preferences directory - even on a MacOS system.

BR
That's because environment variables exist/work in MacOS. Contrary to what anyone has disdainfully told you about them. I can't imagine why any knowledgeable Mac user would tell you Macs "don't have them."

But no. <SIGIL_DEFAULT_TEMP_HOME> is not an environment variable because it's not an environment variable. I don't know how else to explain it. It's an unspecified default value, or it's a file path manually selected by the user.

Last edited by DiapDealer; 05-28-2019 at 08:37 PM.
DiapDealer is offline   Reply With Quote