electron icon indicating copy to clipboard operation
electron copied to clipboard

[Bug]: Windows "select an app" dialog does not appear when using `shell.openPath` to open file without application registered for opening

Open MRayermannMSFT opened this issue 1 year ago • 11 comments

Preflight Checklist

Electron Version

21.2.0

What operating system are you using?

Windows

Operating System Version

Windows 11 22H2

What arch are you using?

x64

Last Known Working Electron version

13.1.2

Expected Behavior

  1. Have file that doesn't have an application registered for opening
  2. Use shell.openPath to open the file

Expected: a "select an app" dialog appears allowing you to choose an app with which to open the file. image

Actual Behavior

Actual: nothing appears and the file doesn't open in any application.

Testcase Gist URL

No response

Additional Information

I tried other versions of Electron to see what versions reproduced and which didn't:

  • 10.3.2 worked
  • 13.1.2 worked
  • 16.0.4 failed
  • 21.2.0 failed

I also tried reproducing on Windows 10, and I could not reproduce the issue.

MRayermannMSFT avatar Dec 07 '22 23:12 MRayermannMSFT

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

github-actions[bot] avatar Mar 08 '23 02:03 github-actions[bot]

Reproduces in Electron 23.1.1

MRayermannMSFT avatar Mar 08 '23 17:03 MRayermannMSFT

bump ?

MRayermannMSFT avatar Mar 08 '23 22:03 MRayermannMSFT

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

github-actions[bot] avatar Jun 07 '23 02:06 github-actions[bot]

bump

Still reproduces on Electron 24.3.1

MRayermannMSFT avatar Jun 07 '23 15:06 MRayermannMSFT

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

bump

MRayermannMSFT avatar Sep 07 '23 14:09 MRayermannMSFT

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

bump

MRayermannMSFT avatar Dec 07 '23 01:12 MRayermannMSFT

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

bump

MRayermannMSFT avatar Mar 08 '24 16:03 MRayermannMSFT