PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Peek's open with...leaves the launched applications working directory in Power Toys

Open MonkeyNinja opened this issue 7 months ago • 1 comments

Microsoft PowerToys version

0.90.1

Installation method

WinGet

Area(s) with issue?

Peek

Steps to reproduce

preview a file open with button top left of preview ( my case nvim.exe ) file opens in nvim....but working directory is Power Toys directory...

nvim has some tricks to get to current buffers file directory but other applications might not be so lucky

✔️ Expected Behavior

default app launches with preview document and working directory set to the same location as the file

❌ Actual Behavior

default app launches with previewed file, but attempting to open another file from the same directory can be cumbersome

Additional Information

windows 11

Other Software

No response

MonkeyNinja avatar May 08 '25 11:05 MonkeyNinja

Currently, Peek uses Windows.System.Launcher, which doesn't support setting the working directory. We could switch to using ProcessStartInfo instead — I’ll give it a try.

lei9444 avatar May 16 '25 06:05 lei9444