Skip to content

Commit 6d61e5d

Browse files
Add LOCALAPPDATA to the path list to search from for the browers for Windows (emscripten-core#19171)
On Windows, when applications are installed without admin priviledges then they are installed in `LOCALAPPDATA` (= C:\Users\my.name\AppData\Local\)
1 parent 5394838 commit 6d61e5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

emrun.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ def find_browser(name):
12241224
('chrome', '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'),
12251225
('chrome_canary', '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary')]
12261226
elif WINDOWS:
1227-
pf_locations = ['ProgramFiles(x86)', 'ProgramFiles', 'ProgramW6432']
1227+
pf_locations = ['ProgramFiles(x86)', 'ProgramFiles', 'ProgramW6432', 'LOCALAPPDATA']
12281228

12291229
for pf_env in pf_locations:
12301230
if pf_env not in os.environ:

0 commit comments

Comments
 (0)