Skip to content

Commit b59e85a

Browse files
author
Fatme
authored
Merge pull request #3942 from NativeScript/fatme/fix-path-to-program-files
fix: fix the path to program files on windows
2 parents ccfce12 + e46140e commit b59e85a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/common/mobile/android/genymotion/genymotion-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export class AndroidGenymotionService implements Mobile.IAndroidVirtualDeviceSer
103103
path.join(osenv.home(), "genymotion", "player")
104104
],
105105
win32: [
106-
"%ProgramFiles%\\Genymobile\\Genymotion\\player.exe",
107-
"%ProgramFiles(x86)%\\Genymobile\\Genymotion\\player.exe"
106+
`${process.env["PROGRAMFILES"]}\\Genymobile\\Genymotion\\player.exe`,
107+
`${process.env["PROGRAMFILES(X86)"]}\\Genymobile\\Genymotion\\player.exe`
108108
]
109109
};
110110
}

lib/common/mobile/android/genymotion/virtualbox-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export class VirtualBoxService implements Mobile.IVirtualBoxService {
5555
"~"
5656
],
5757
win32: [
58-
"%ProgramFiles%\\Oracle\\VirtualBox",
59-
"%ProgramFiles(x86)%\\Oracle\\VirtualBox"
58+
`${process.env["PROGRAMFILES"]}\\Oracle\\VirtualBox`,
59+
`${process.env["PROGRAMFILES(X86)"]}\\Oracle\\VirtualBox`
6060
]
6161
};
6262

0 commit comments

Comments
 (0)