Skip to content

BUG: Pwsh (PowerShell 7.x) won't run any commands (Shell plugin) #4021

@RealNath

Description

@RealNath

Checks

  • I have checked that this issue has not already been reported.

  • I am using the latest version of Flow Launcher.

  • I am using the prerelease version of Flow Launcher.

Problem Description

I tried with basic commands like checking PowerShell versions or pinging 8.8.8.8. It works in CMD and PowerShell (as in Windows PowerShell, the blue icon one). But in Pwsh (the black icon one), the window always appear for a split second before disappearing.

To Reproduce

  1. Open Flow Launcher Settings
  2. Go to Plugin > Shell > tick "Do not close Command Prompt after command execution"
  3. Choose Pwsh
  4. Open Flow Launcher
  5. Type the action keyword (in this case >), then the command you want to run (e.g ping 8.8.8.8, $PSVersionTable)
  6. PowerShell window will always appear for a split sec before immediately disappearing

Screenshots

Running commands in pwsh via FL (not working):
via FL

Running commands in pwsh directly (working):
directly via PowerShell

Flow Launcher Version

2.0.1

Windows Build Number

10.0.26200.6718

Error Log

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Waiting for responseWaiting for poster to respond to Team messagebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions