mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Fix init check for process.windowsStore
Windows now allows users to move their `WindowsApps` folder, meaning that it can end up on a different drive (and outside of `Program Files`).
This commit is contained in:
@@ -56,7 +56,7 @@ if (process.platform === 'win32') {
|
||||
//
|
||||
// Nobody else get's to install there, changing the path is forbidden
|
||||
// We can therefore say that we're running as appx
|
||||
if (__dirname.indexOf('\\Program Files\\WindowsApps\\') === 2) {
|
||||
if (__dirname.includes('\\WindowsApps\\')) {
|
||||
process.windowsStore = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user