-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
area - context menuFeatures or bug reports relating to the context menuFeatures or bug reports relating to the context menuneeds - additional infoNeeds more information from the reporterNeeds more information from the reporter
Description
Description
This is an issue related to the execution logic of the right-click context menu "Open With" submenu.
When launching an app via Files UWP's right-click "Open With", the working directory is incorrectly set to System32
- Additional Information:
- When launching via double-click (using default file association), the working directory is correct. The issue only occurs when launching via the "Open With" menu.
- This suggests that the "Open With" menu item's code may not properly set the
lpDirectory
parameter when callingShellExecute
or a similar API.
Steps To Reproduce
- In Files UWP, right-click on an executable file or script (such as a
.jar
or.py
file). - Select "Open With" > Choose a program (e.g.,
Java
orPython
). - The application is launched successfully, but its "current working directory" is set to
C:\Windows\System32
, instead of the directory where the file is located. - This causes many applications that rely on the working directory to locate resources, configurations, or save files to fail to run properly.
output2_small_x264.mp4
Files Version
3.9.1.0
Windows Version
10.0.26100.4652 WorkStation
User ID
No response
Log File
Metadata
Metadata
Assignees
Labels
area - context menuFeatures or bug reports relating to the context menuFeatures or bug reports relating to the context menuneeds - additional infoNeeds more information from the reporterNeeds more information from the reporter