-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
[Bug] cannot open files from cmd or powershell or any terminal app #220
Comments
tags: ? code: in src directory
let me know if you want more details like
|
@trip23app |
For opening files within CMD and PowerShell, it should work. Can you do a quick screen recording of your scenario? Notepads "help" or "-h" is not implemented since this is not a command-line app and I do not feel a need of doing so (Same as original notepad.exe). For answering why running Notepads command in PowerShell will "hang" or becoming "unusable" is because PowerShell runs Notepads command in the main thread and by default, it is waiting for the command to finish, in this case: it will finish after closing the app. If you run below command in PowerShell, it will run the command in a background thread:
This is a behavior change brought by implementing UWP multi-instance feature. Not sure why and I can take a look later. |
it works, i tried it with different files and it works flawlessly. sorry to bother you. thanks for the app and for opened file like |
Describe the bug
opening any file doesn't work from a terminal or cmd or powershell.
To Reproduce
Steps to reproduce the behavior.
notepads rat.txt
in terminal.Expected behavior
type
notepad rat.txt
, notepad opens the file. and you can continue to type other commands in the same terminal.vscode also does something like notepad, I think. other text editors also do this basic task.
Screenshots
None.
Desktop (please complete the following information):
Additional context
notepads help
ornotepads -h
doesn't work.similar issue for printing the version of notepads.
actually, even typing
notepads
in the terminal, presents the same issues. the file is not opened, terminal is unusable.my user account is not admin, so can't change some settings. there is a admin account. and "transparency effects" are turned off.
The text was updated successfully, but these errors were encountered: