0x7c13 / Notepads

A modern, lightweight text editor with a minimalist design.
https://www.NotepadsApp.com
MIT License
8.65k stars 474 forks source link

[Bug] Image File Execution Options registry hack does not work #1208

Open win98se opened 1 year ago

win98se commented 1 year ago

Describe the bug I have set the registry as below to replace Windows Notepad with Notepads -

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe]
"Debugger"="\"C:\\Users\\LCw\\AppData\\Local\\Microsoft\\WindowsApps\\Notepads.exe\""

However when I open any file associated with Windows Notepad or run command line commands like notepad test.txt, they do not open in Notepads, showing a blank Untitled.txt instead (refer to Figure 1). Using command line commands like notepads test.txt to launch Notepads directly do work properly though.

To Reproduce Create the above mentioned registry key, then try to open any file associated with Windows Notepad or run command line commands like notepad test.txt.

Expected behavior Opening any file associated with Windows Notepad or running command line commands like notepad test.txt should make those files open in Notepads normally (refer to Figure 2).

Screenshots image Figure 1

image Figure 2

Desktop (please complete the following information):

Additional context Adding program parameters such as -notepadStyleCmdline -z, -z or /z to the Debugger value also doesn't work.