Page 1 of 1

Startup.ini - Non accessible path: Error 76

Posted: 21 Jul 2024 18:54
by highend
Any non accessible path in the Startup.ini leads to this (e.g. O:\ is currently not mounted):

Code: Select all

[Appdata]
Path="O:\XYplorer\UserProfiles\%username%"


This error pops up 2 times on start (if tags exist):

Code: Select all

Failed to Save Tags
Access is denied
C:\Program Files (x86)\XYplorer 26.20.0205\tag.dat
Now using: Menu - File - Exit (Saving) leads to:

Code: Select all

Save Settings Failed
Access is denied.
C:\Program Files (x86)\XYplorer 26.20.0205\XYplorer.ini
Followed by a Windows dialog box:
1.png
1.png (6.94 KiB) Viewed 875 times
Using Skip here leads to Error 76:
2.png
2.png (13.2 KiB) Viewed 875 times

It would be nice if the path from the startup.ini is not available XY wouldn't even try to write profile data into its own folder (at least not, if that is in a UAC-protected path).
Maybe the default in such a case should be a %APPDATA%\XYplorer_<version number>
so it's
01.) A safe location to write to
02.) It won't overwrite any normal existing ("%APPDATA%\XYplorer") with fresh data

Or even better: Shell out a single dialog box on startup!
The profile path defined in Startup.ini wasn't found, automatic saving is disabled!

and skip all other dialog windows!

We would still be able to save all profile related settings via Menu - File - Settings Special - Save Configuration as...
if that's necessary...

Re: Startup.ini - Non accessible path: Error 76

Posted: 22 Jul 2024 09:44
by admin
Yeah, confirmed. I went for the %APPDATA%\XYplorer_<version number> way. :tup:

Re: Startup.ini - Non accessible path: Error 76

Posted: 22 Jul 2024 11:42
by highend
Tried it a few times, looks solid. Thanks! :appl: