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

Finding Edge Fails when Edge DevTools are enabled #113

Open
zevisert opened this issue Mar 19, 2019 · 1 comment
Open

Finding Edge Fails when Edge DevTools are enabled #113

zevisert opened this issue Mar 19, 2019 · 1 comment

Comments

@zevisert
Copy link

zevisert commented Mar 19, 2019

When windows getEdgeDirectory runs, this filter

var edgeFolders = fs.readdirSync(systemApps).filter(function(folder) {
return folder.indexOf('Microsoft.MicrosoftEdge') === 0;

results in inclusion of both these paths:

  • "C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe"
  • "C:\Windows\SystemApps\Microsoft.MicrosoftEdgeDevToolsClient_8wekyb3d8bbwe"

On my system the DevToolsClient folder comes first, so launchpad returns that path right after.

return edgeFolders[0] || systemApps;

The DevToolsClient folder doesn't contain a copy of MicrosoftEdge.exe so launchpad fails to detect edge on my system.

Easy fix

  • Just filter again to remove paths that contain DevToolsClient
  • or change the filter line 91 to have a trailing underscore (but this is more of a hack)
@chasenlehara
Copy link
Member

Thanks for filing this issue @zevisert!

I see this function being used here:

defaultLocation: path.join(getEdgeDirectory(), 'MicrosoftEdge.exe'),

I wonder if it should check for MicrosoftEdge.exe in each of the folders it gets, and then select the first one if there are multiple?

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

No branches or pull requests

2 participants