fix(storage): canonicalize retained Windows virtual data roots without reopening SQLite
This commit is contained in:
@@ -94,6 +94,10 @@ export class Store extends EventEmitter {
|
||||
}
|
||||
|
||||
ensureStorage(options = {}) {
|
||||
// A retained pre-desktop Store may still name an MSIX-virtualized LocalAppData
|
||||
// directory. Bind new path-scoped services to that same physical directory,
|
||||
// including when SQLite is already open; do not reopen or move its data.
|
||||
this.directory = fs.realpathSync.native(this.directory);
|
||||
if (this.storage?.database) {
|
||||
const missing = CORE_KINDS.filter(kind => !this.core?.[kind]);
|
||||
if (missing.length) {
|
||||
|
||||
Reference in New Issue
Block a user