Flow.Launcher
Flow.Launcher copied to clipboard
BUG: JSON-RPC API docs denote backwards data flow; list API methods that are impossible to call
Checks
-
[X] I have checked that this issue has not already been reported.
-
[X] I am using the latest version of Flow Launcher.
Problem Description
The docs for JSON-RPC appear inaccurate or misleading in three ways: https://www.flowlauncher.com/docs/#/json-rpc
- The dataflow
-->and<--is backwards. "Query" is sent from flow to the plugin. Title/Subtitle/IconPath is sent from the plugin to Flow. - The example response from Plugin to Flow is incorrect. Should be:
-<-- {"Title": "title", "SubTitle": "sub title", "IconPath": "favicon.ico"}
+--> {"result": [{"Title": "title", "SubTitle": "sub title", "IcoPath": "favicon.ico"}]}
- The API List is misleading because it is impossible for RPC Plugins to call many (all?) of those methods. For example, how is an RPC plugin supposed to call
ChangeQueryorShowMsg?
To Reproduce
No response
Screenshots
No response
Flow Launcher Version
1.19.2
Windows Build Number
22631.4169
Error Log
No response