I'm trying to use the Windows chrome executable through WSL2 (for reference, Flutter looks at
$CHROME_EXECUTABLE to launch web apps in chrome).
In my bashrc I have the following:
export CHROME_EXECUTABLE="/mnt/c/program\ files/google/chrome/application/chrome.exe"
flutter doctor complains that
$CHROME_EXECUTABLE doesn't point to a chrome executable. If I execute
$CHROME_EXECUTABLE in bash, I get:
bash: /mnt/c/program\: No such file or directory
If however, I execute
/mnt/c/program\ files/google/chrome/application/chrome.exe, It works and opens a chrome instance inside windows.
It seems like there's some escaping issue here, but I'm not sure what's going on, I thought
\ would escape the space in "program files" ?