View Single Post
Old 05-28-2019, 07:55 PM   #5
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,783
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
When I first install an application the first thing I do is to explore its Menus and Preferences (Settings, Options, Hamburger button, whatever).

Quote:
Originally Posted by DiapDealer View Post
In all honesty... there probably shouldn't have been a real file-path in the text box to begin with. The default value is "<SIGIL_DEFAULT_TEMP_HOME>." It should only be changed from that default to address some very specific issues (mentioned above).
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.

AFAIK: the conventions of using all-caps for both Environment Variable and #define names is an unfortunate coincidence.

Quote:
Originally Posted by DiapDealer View Post
Manually editing files in Sigil's scratch directory with other software while Sigil has them open is a surefire fire way to mess things up badly (including lost content). That's why we stopped showing the actual path in the text box in the first place. I can't stress enough how those files should be left entirely alone.
The Open With <whatever> feature can be used to open the selected file safely in the temporary sub-directory Sigil creates in the designated directory. See post #8 for further details.

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

Click image for larger version

Name:	Annotation 2019-05-29 092749.jpg
Views:	371
Size:	43.8 KB
ID:	171686

Quote:
Originally Posted by DiapDealer View Post
... (or you're trying to work around a MacOS issue where epubs left open in Sigil for days can have their temp files harvested by the OS).
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' Ψ³

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

Last edited by BetterRed; 05-29-2019 at 06:39 PM.
BetterRed is offline   Reply With Quote