microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.79k stars 6.58k forks source link

Executables are not picked up from custom program sources #30351

Open albertony opened 11 months ago

albertony commented 11 months ago

Microsoft PowerToys version

0.76.1

Installation method

GitHub

Running as admin

No

Area(s) with issue?

PowerToys Run

Steps to reproduce

  1. Assuming you have a directory C:\Tools with a suite of executables, e.g. download and extract SysInternals suite from https://download.sysinternals.com/files/SysinternalsSuite.zip.
  2. Exit PowerToys if it is currently running.
  3. Edit %LocalAppData%\Microsoft\PowerToys\PowerToys Run\Settings\Plugins\Microsoft.Plugin.Program\ProgramPluginSettings.json
  4. Change ProgramSources to
    "ProgramSources": [
    {
     "Location": "C:\\Tools",
     "Enabled": true,
     "UniqueIdentifier": "d379c7a9-bcfc-4edf-86b8-a256222558c2"
    }
    ]
  5. Start PowerToys.
  6. Open Run dialog (Alt+Space).
  7. Search for procexp.

✔️ Expected Behavior

C:\Tools\procexp.exe is found.

❌ Actual Behavior

C:\Tools\procexp.exe is not found. No exe, bat etc are found, only shortcuts, despite the fact that the default settings file contains:

  "ProgramSuffixes": [
    "bat",
    "appref-ms",
    "exe",
    "lnk",
    "url"
  ],

Other Software

No response

albertony commented 11 months ago

Suggested fix: