Browse Source

Fix plugin on Android

pull/2016/head
Max Lv 6 years ago
parent
commit
68f885c271
1 changed files with 4 additions and 0 deletions
  1. 4
      src/plugin.c

4
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);

Loading…
Cancel
Save