You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is on Linux, I haven't checked the behavior on Windows yet.
By the way, using the following code seems to help to save the file in a specific user directory, which would help to install QH on Windows in a directory without write access for regular users:
{$ifdef Windows}
envVar := GetEnvironmentVariable('LocalAppData'); // XP only has %AppData%if envVar <> ''thenbeginif DirectoryExists(envVar + '/QuickHash') = false thenbegin
CreateDir(envVar + '/QuickHash');
end;
if DirectoryExists(envVar + '/QuickHash') = true thenbegin
QH_MainFormXMLPropStorage.FileName := envVar + '/QuickHash/PropStorage.xml';
end;
end;
{$endif}{$ifdef UNIX}
envVar := GetEnvironmentVariable('HOME');
if envVar <> ''thenbegin// $HOME/.config should already exist on Mac and Linuxif DirectoryExists(envVar + '/.config/QuickHash') = false thenbegin
CreateDir(envVar + '/.config/QuickHash');
end;
if DirectoryExists(envVar + '/.config/QuickHash') = true thenbegin
QH_MainFormXMLPropStorage.FileName := envVar + '/.config/QuickHash/PropStorage.xml';
end;
end;
{$endif}
The text was updated successfully, but these errors were encountered:
I need to use SysUtils.GetEnvironmentVariable() to compile it on Windows. Forward slashes as directory delimiters are working fine. The xml file is stored in the right AppData directory, but the issue that the actual window properties aren't saved in there remains (it's the same with self-compile and your pre-compiled versions).
Since nobody has had an issue with that so far I'd say the TXMLPropStorage stuff could be removed.
PS: the 32 bit and 64 bit releases only need their 32/64 bit versions of sqlite in the same directory and not both. Cause currently your zip packages ship both dlls for each binary.
QH doesn't seem to save the last window properties in
~/.quickhash
.It always remains the same:
This is on Linux, I haven't checked the behavior on Windows yet.
By the way, using the following code seems to help to save the file in a specific user directory, which would help to install QH on Windows in a directory without write access for regular users:
The text was updated successfully, but these errors were encountered: