PowerToys: Launcher does not open files

Environment

Windows build number: Microsoft Windows [Versione 10.0.19041.264]
PowerToys version: 0.18.0
PowerToy module for which you are reporting the bug (if applicable): launcher

Steps to reproduce

search a file, press enter

Expected behavior

I'm expecting that the file will be opened

Actual behavior

nothing

Screenshots

82429389-16646a80-9a8c-11ea-8502-4e6d072208c0 82429392-17959780-9a8c-11ea-942a-22c4fe1f3c8a

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 38 (21 by maintainers)

Most upvoted comments

After testing a bit more I think I know what the problem is. It happens when the file is in a “localized folder”. For instance, the “Documents” folder is called “Dokumente” in German localized Windows. Unfortunately, the most important folders like “Users” or “Documents” are localized. When you find a file inside such a folder, it cannot be opened - when you click on the file, nothing happens. When you click on “open containing folder”, the “this computer” view is shown instead. When you click on “copy path”, the translated path is copied. I think the problem is that the translated path does not exist as a real path - the localized folder is a symbolic link and the actual folder is hidden away as a system file. When I tried it on a localized folder that has the same name as the original, it worked. In German Windows you can see the difference when you find something in the “Videos” vs the “Music” folder, since “Music” is translated "to “Musik” in German, but Videos uses the same name.

I may have a possible solution for this problem but i don’t know if is the best solution. When Microsoft.Plugin.Indexer is querying it is selecting the System.ItemPathDisplay that returns the localized path of the file/folder. For some reason Proccess.Start does not like localized paths i supposed that is the same reason why powershell does not let me launch localized paths.

After changing System.ItemPathDisplay to System.ItemUrl and remove the scheme from the url it appears to be working for launching file/path and for the icon.

Previous: image

After: image

@tiagolpadua based on the screenshot, the fix should have corrected it inside 0.18.1

@tiagolpadua please update powertoys to v0.18.1. It should be working now.

We just released 0.18.1 which will have this fix included in it.

@ricardosantos9521 great find / fix!

@crutkas The file path resolves, but it is uses the localized folder name. When I copy the file path of a PDF that the Launcher does not open and then paste it into the address bar of the Windows explorer, then the PDF file opens. The Windows explorer has no problem using the translated names, and the file is also opened when I use the integrated search bar of Windows.

@cito, i think you may be on to something here. #3299 seems to be the same. Now to see why the heck this is happening. time to boot up some VMs

In the snapshot provided by @AlessandroGiannetti you see that the file is in the “Utenti” folder which is the Italian localized name of the “Users” folder.

In both local or ondrive files, Even the folders. I can just open programs. I have only one user in my system.