Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not find program path in windows when specific app option #158

Closed
tjx666 opened this issue Dec 12, 2019 · 3 comments
Closed

can not find program path in windows when specific app option #158

tjx666 opened this issue Dec 12, 2019 · 3 comments

Comments

@tjx666
Copy link

tjx666 commented Dec 12, 2019

below code works well:

open(resolve(__dirname, "./test.html"), "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe");

But I'm using typescript, as the type definition, I can only use like:

open(resolve(__dirname, "./test.html"), {
  app: "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
});

I try the version of V6.4.0, that version has not this problem.

package version: V7.0.0
OS version: win10 pro 1909
node version: v12.13.1

Then happen the error like screenshot:
Snipaste_2019-12-12_12-49-50

@hong4rc
Copy link
Contributor

hong4rc commented Jan 2, 2020

@tjx666 Can you check solution #162 ?

@tjx666
Copy link
Author

tjx666 commented Jan 2, 2020

@hongarc It works.

Snipaste_2020-01-02_21-35-55

@hong4rc
Copy link
Contributor

hong4rc commented Jan 2, 2020

You should add double-quotes manual until this PR is merged(or reject with better solution)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants