Philippe Lhoste:
> Note that I didn't change any setting yet.
> My settings files are in the path I have set in SciTE_HOME (D:\Dropbox\Applications\SciTE).
> I checked the doc, it should still work as before, for global and user settings.
Trying it out for myself.
Put Sc524.exe in D:\usr along with a SciTEUser.properties that included “import PhiLho/SciTEUser”
Put “caret.fore=#00A090” in D:\usr\PhiLho\SciTEUser.properties
Set SciTE_HOME=D:\usr using Settings | Type env | Edit the system environment variables.
Double click on Sc524.exe and there is a cyan caret.
The Options menu contains a last item: Open PhiLho/SciTEUser.properties
> SciTE.properties and SciTEUser.properties are on the same folder (in the dropbox, as said earlier), the latter having only the line indicated below, to redirect to the real SciTEUser file, one folder below.
> When I load the user properties files (using the dedicated menu), it loads the one with the import statement, so it should be OK.
>
> But to be sure, I set the SciTE_USERHOME as well, pointing to D:\Dropbox\Applications\SciTE\PhiLho.
SciTE_USERHOME takes priority.
FilePath SciTEWin::GetSciteUserHome() {
// First looking for environment variable $SciTE_USERHOME
// to set SciteUserHome. If not present we look for $SciTE_HOME
// then defaulting to $USERPROFILE
GUI::gui_char *home = _wgetenv(GUI_TEXT("SciTE_USERHOME"));
if (!home) {
home = _wgetenv(GUI_TEXT("SciTE_HOME"));
if (!home) {
home = _wgetenv(GUI_TEXT("USERPROFILE"));
}
}
return GetSciTEPath(home);
}
This code, and GetSciTEPath don’t appear to have changed since 2016.
Is your D:\Dropbox a normal on-disk directory or is it under control of a file system driver to give the illusion of files being present before they are actually downloaded?
There can be issues about when you set SciTE_HOME and having running programs (like Command Prompt) that don’t pick up the new value until they are restarted.
Reading user properties actually occurs twice at startup (in ReadGlobalPropFiles) to allow setting “imports.include” or “imports.exclude” in user properties and have those settings effect global and user properties.
There could be a regression somewhere but its not obvious on my setup.
Neil