microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
109.66k stars 6.46k forks source link

Workspaces Editor: Shows "License.txt" instead of actual Notepad filename. #34618

Open SunilSuresh5260 opened 1 week ago

SunilSuresh5260 commented 1 week ago

Microsoft PowerToys version

0.84.0

Installation method

PowerToys auto-update

Running as admin

No

Area(s) with issue?

Workspaces

Steps to reproduce

I opened two txt documents (Notepad.exe files) and created a workspace.

✔️ Expected Behavior

It should have shown the names of the files (or at least "Notepad.exe") in the Workspace Editor. (PowerToys v0.84.0, Windows 10 Build 19045.4780) PowerToysReport_2024-09-05-07-22-49.zip

❌ Actual Behavior

It shows "License.txt" as the names of the files. PTScreenshot 2

I think this issue may be related to the issue of it opening blank Notepad files instead of the actual files when the Workspace is launched.

Other Software

No response

plante-msft commented 1 week ago

@SunilSuresh5260 make sure to add the paths of each file directly to the "CLI arguments" section of each app's dropdown. Workspaces is not able to automatically detect your app's configuration at this time. I also found that I had to add --new-window as well to get both instances to launch separately, otherwise, both files will launch as tabs in a single instance.

Does this work for you? /needinfo

Image

SunilSuresh5260 commented 1 week ago

@plante-msft,

Thanks for your reply.

Yes, adding the full path to the file as a CLI allows it to open the file.

I think the "-new-window" option is needed for apps that open multiple files in the same instance of the app (like Word, Excel, etc.). For notepad, it automatically opens the new file in a new window.

This part of my query is resolved. But the first part still remains: Why does it show "license.txt" for the app name? I think it should show "Notepad.exe".

Thanks again.

plante-msft commented 1 week ago

Glad to hear the CLI arg adjustment worked. We will look into the name issue, but it is not reproing on my build at the moment.

Do you have any file named "license.txt" open in Notepad, or is that name completely random?