Skip to content

Commit 392e4ef

Browse files
committed
Merge branch 'plugin_api_v2' of https://github.com/SweedXD/Flow.Launcher.PluginsManifest into plugin_api_v2
2 parents 6c0dc35 + f38c1ac commit 392e4ef

7 files changed

+3416
-3351
lines changed

ci/src/test-python.py

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,36 @@ def get_all_python_plugins(manifest: dict) -> list:
8181
return [plugin for plugin in manifest if plugin["Language"].lower() == "python"]
8282

8383
def run_plugin(plugin_name: str, plugin_path: str, execute_path: str) -> bool:
84-
"""Run plugin and check output. Returns true if test successfull else false"""
84+
"""Run plugin and check output. Returns true if test successful else false"""
8585
os.chdir(plugin_path)
8686
default_settings = init_settings(plugin_name, plugin_path)
8787
args = json.dumps(
8888
{"method": "query", "parameters": [""], "Settings": default_settings}
8989
)
90-
full_args = ["python", "-S", Path(plugin_path, execute_path), args]
90+
9191
# Older Flox used environmental variable to locate Images directory
9292
os.environ["PYTHONPATH"] = str(USER_PATH.joinpath("PythonEmbeddable"))
93+
94+
# Compose the sys.path setup and runpy logic as Flow Launcher does in
95+
# https://github.com/Flow-Launcher/Flow.Launcher/blob/dfe96160ed44684810bcdf853f86fda4305122d6/Flow.Launcher.Core/Plugin/PythonPlugin.cs#L69-L81
96+
sys_path_setup = (
97+
f"import sys; "
98+
f"sys.path.append(r'{plugin_path}'); "
99+
f"sys.path.append(r'{plugin_path}\\lib'); "
100+
f"sys.path.append(r'{plugin_path}\\lib\\win32\\lib'); "
101+
f"sys.path.append(r'{plugin_path}\\lib\\win32'); "
102+
f"sys.path.append(r'{plugin_path}\\plugin'); "
103+
f"import runpy; "
104+
f"runpy.run_path(r'{Path(plugin_path, execute_path)}', None, '__main__')"
105+
)
106+
107+
full_args = [
108+
"python",
109+
"-S",
110+
"-c",
111+
sys_path_setup,
112+
args
113+
]
93114
print_section("Input", full_args)
94115
p = Popen(full_args, text=True, stdout=PIPE, stderr=PIPE)
95116
stdout, stderr = p.communicate()
@@ -104,7 +125,7 @@ def run_plugin(plugin_name: str, plugin_path: str, execute_path: str) -> bool:
104125
return True
105126
else:
106127
print_section(f"{plugin['Name']} test FAILED!", "")
107-
print(f'Plugin returned a non-zero exit code: {max(exit_code, 1)}')
128+
print(f'Plugin has returned a non-zero exit code: {max(exit_code, 1)}')
108129
if stderr != "":
109130
print_section('Trace', stderr)
110131
if json_msg:

etags.json

Lines changed: 266 additions & 265 deletions
Large diffs are not rendered by default.

plugins.json

Lines changed: 3092 additions & 3077 deletions
Large diffs are not rendered by default.

plugins/Bitwarden-5A8EBCEB7F6940E5B628BE122A87B560.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"Name": "Bitwarden",
44
"Description": "Quick access to your Bitwarden vault via Flow Launcher.",
55
"Author": "RedMageKnight",
6-
"Version": "2.1.0",
6+
"Version": "2.2.0",
77
"Language": "csharp",
88
"Website": "https://github.com/RedMageKnight/Flow.Launcher.Plugin.BitwardenSearch",
9-
"UrlDownload": "https://github.com/RedMageKnight/Flow.Launcher.Plugin.BitwardenSearch/releases/download/v2.1.0/Flow.Launcher.Plugin.Bitwarden.zip",
9+
"UrlDownload": "https://github.com/RedMageKnight/Flow.Launcher.Plugin.BitwardenSearch/releases/download/v2.2.0/Flow.Launcher.Plugin.Bitwarden.zip",
1010
"UrlSourceCode": "https://github.com/RedMageKnight/Flow.Launcher.Plugin.BitwardenSearch/tree/main",
1111
"IcoPath": "https://cdn.jsdelivr.net/gh/RedMageKnight/Flow.Launcher.Plugin.BitwardenSearch/Images/bitwarden.png",
1212
"DateAdded": "2024-07-22T16:13:00Z",
13-
"LatestReleaseDate": "2024-12-06T09:58:21Z"
13+
"LatestReleaseDate": "2025-08-08T18:26:55Z"
1414
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"ID": "3f648301-8764-4790-841b-0431fc0eb072",
3+
"ActionKeyword": "*",
4+
"Name": "CurrencyPP (UI Fixed)",
5+
"Description": "Fixed Settings UI version of the CurrencyPP Plugin",
6+
"Author": "SweedXD",
7+
"Version": "4.0.0",
8+
"Language": "python",
9+
"Website": "https://github.com/SweedXD/CurrencyPP",
10+
"UrlDownload": "https://github.com/SweedXD/CurrencyPP/releases/download/v4.0.0/CurrencyPP.zip"
11+
"UrlSourceCode": "https://github.com/SweedXD/CurrencyPP"
12+
"IcoPath": "https://raw.githubusercontent.com/SweedXD/CurrencyPP/refs/heads/master/src/CurrencyPP.png",
13+
}

plugins/LinkOpener-4905edc2-7feb-4036-bfae-b06efc60c879.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"Name": "LinkOpener",
44
"Description": "Allows you to open URLs using keywords set in the settings",
55
"Author": "Exarilo",
6-
"Version": "1.3.1",
6+
"Version": "1.3.2",
77
"Language": "csharp",
88
"Website": "https://github.com/Exarilo/Flow.Launcher.Plugin.LinkOpener",
9-
"UrlDownload": "https://github.com/Exarilo/Flow.Launcher.Plugin.LinkOpener/releases/download/v1.3.1/Flow.Launcher.Plugin.LinkOpener.zip",
9+
"UrlDownload": "https://github.com/Exarilo/Flow.Launcher.Plugin.LinkOpener/releases/download/v1.3.2/Flow.Launcher.Plugin.LinkOpener.zip",
1010
"UrlSourceCode": "https://github.com/Exarilo/Flow.Launcher.Plugin.LinkOpener",
1111
"IcoPath": "https://cdn.jsdelivr.net/gh/Exarilo/Flow.Launcher.Plugin.LinkOpener@main/Images/app.png",
12-
"LatestReleaseDate": "2025-07-23T19:43:06Z",
12+
"LatestReleaseDate": "2025-08-09T02:06:54Z",
1313
"DateAdded": "2024-08-08T09:19:45Z"
1414
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"ID": "555a3e1c-da00-4a05-13d0-a880993c2bd0",
3+
"Name": "ZoxidePy",
4+
"Description": "Zoxide integration for Flow Launcher, written in Python.",
5+
"Author": "WantChane",
6+
"Version": "1.2.0",
7+
"Language": "python",
8+
"Website": "https://github.com/WantChane/Flow.Launcher.Plugin.ZoxidePy",
9+
"UrlDownload": "https://github.com/WantChane/Flow.Launcher.Plugin.ZoxidePy/releases/download/v1.2.0/Flow.Launcher.Plugin.ZoxidePy.zip",
10+
"UrlSourceCode": "https://github.com/WantChane/Flow.Launcher.Plugin.ZoxidePy/tree/main",
11+
"IcoPath": "https://cdn.jsdelivr.net/gh/WantChane/Flow.Launcher.Plugin.ZoxidePy@main/app.png",
12+
"LatestReleaseDate": "2025-08-06T15:56:53Z",
13+
"Tested": true,
14+
"DateAdded": "2025-08-06T18:36:59Z"
15+
}

0 commit comments

Comments
 (0)