PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

PowerToys Run | Folder Plugin: ~ for home directory doesn't handle relocated folders

Open Hossy opened this issue 1 year ago • 3 comments

Microsoft PowerToys version

0.77.0

Installation method

PowerToys auto-update

Running as admin

None

Area(s) with issue?

PowerToys Run

Steps to reproduce

Relocate Desktop to another drive/location. Use ~\Desktop in PowerToys Run with Folder plugin enabled.

✔️ Expected Behavior

I expect ~\Desktop to work

❌ Actual Behavior

It doesn't; wants to do a web search

Other Software

No response

Hossy avatar Jan 10 '24 17:01 Hossy

Hi @Hossy This is the expected behavior that can be reproduced in Windows Explorer/PowerShell. PowerShell interpret ~ as %USERPROFILE%.

Are you able to access these folders from Explorer/PowerShell? /needinfo

davidegiacometti avatar Jan 10 '24 19:01 davidegiacometti

Are you able to access these folders from Explorer/PowerShell? /needinfo

I can in Explorer, but not in PowerShell. Trying using C:\Users\user\Desktop and Desktop was moved to D:\Users\user\Desktop. When doing it in Explorer, I enter C:\Users\user\Desktop and Explorer changes it to D:\Users\user\Desktop. Explorer also shows a Desktop folder icon when viewing C:\Users\user.

Hossy avatar Jan 10 '24 22:01 Hossy

Woow! Didn't know this is worked in Explorer.

This is something that has always bothered me while working in PowerShell.

davidegiacometti avatar Jan 11 '24 11:01 davidegiacometti