Flow-Launcher / Flow-Launcher/Flow.Launcher

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

Open
#4,021 5 comments 0 reactions 0 assignees View on GitHub
bug keep-fresh Waiting for response
Dominant language
C#
Stars
15.6k
Forks
644
Avg merge
16h 51m
Merged PRs (30d)
3

Description

### Checks

- [x] I have checked that this issue has not already been reported.

- [x] 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_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.