From 68f885c271bf1c2fbe98cfcc98e75b48cde65045 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Wed, 4 Apr 2018 23:44:24 +0800 Subject: [PATCH] Fix plugin on Android --- src/plugin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugin.c b/src/plugin.c index e6ceebf1..a5cfe015 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -110,7 +110,11 @@ start_ss_plugin(const char *plugin, if (plugin_opts != NULL) cork_env_add(env, "SS_PLUGIN_OPTIONS", plugin_opts); +#ifdef __ANDROID__ + exec = cork_exec_new_with_params("sh", "-c", plugin, NULL); +#else exec = cork_exec_new_with_params(plugin, NULL); +#endif cork_exec_set_env(exec, env);