lorca
lorca copied to clipboard
Library won't search for 64 bit Chrome if called from 32 bit application
Both os.Getenv("ProgramFiles") and os.Getenv("ProgramFiles(x86)") point to Program Files (x86) when this is being run in a 32 bit application. Therefore when being run as a 32 bit app, Lorca fails to locate chrome for users who have only installed a 64 bit version in C:\Program Files. Can this be considered a bug, or is it correct to only look for both when being run from a 64 bit app? When looking at the code in locate.go, it seems like the intention was to search in both Program Files and Program Files (x86), but this won't happen when both environment variables point to x86.