Flow.Launcher
Flow.Launcher copied to clipboard
BUG: Shell plugin calls syntax error
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
Shell plugin throws syntax error when I typed sfc /scannow or net start commands. When I run cmd with admin rights it has no error and command executes successfully.
I download proccess monitor, and it seems like command executes with "C:\Windows\System32\cmd.exe "/k sfc /scannow ". I think there is parsing error. Even shutdown /r /t 0 not works.
Commands without spaces works correctly.
Process monitor when FL starts cmd.exe: Command line: "C:\Windows\System32\cmd.exe "/k sfc /scannow "
To Reproduce
- Turn on Shell plugin
- Use Windows Terminal
- Use CMD option
- sfc /scannow command via shell plugin with admin rights throws syntax error
- net start [service] command via shell plugin with admin rights throws syntax error
- shutdown /r /t 0 command via shell plugin with admin rights throws syntax error
Screenshots
No response
Flow Launcher Version
1.20.0
Windows Build Number
Version 10.0.26100.4202
Error Log
No response
Could you please check if pre-released version works for you?
https://github.com/Flow-Launcher/Prereleases
Nope, it doesn't works(
Nope, it doesn't works(
Any issues in log file?
Nope
@Burbenpho Hi, could you please check if #3734 can help?
https://ci.appveyor.com/project/JohnTheGr8/flow-launcher/builds/52241236/artifacts
+1, it gives out PositionalParameterNotFound error
C:\bin\script.ps1 : A positional parameter cannot be found that accepts argument ''.
+ CategoryInfo : InvalidArgument: (:) [script.ps1], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : PositionalParameterNotFound,script.ps1
+1, it gives out PositionalParameterNotFound error
C:\bin\script.ps1 : A positional parameter cannot be found that accepts argument ''. + CategoryInfo : InvalidArgument: (:) [script.ps1], ParentContainsErrorRecordException + FullyQualifiedErrorId : PositionalParameterNotFound,script.ps1
Hi, could you please check if this helps?
https://ci.appveyor.com/project/JohnTheGr8/flow-launcher/builds/52241236/artifacts
@Jack251970 working as intended, thanks!
found another bug with the shell plugin. when ending your command with a \ backslash, it will double it up. So if I end with 3 back slashes, it will send 6.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 60 days.\n\nAlternatively this issue can be kept open by adding one of the following labels:\nkeep-fresh
@soul4kills Could you please check if this issue still exists and open a new issue item with reproduction steps? Thanks!