Skip to content

Commit b05452f

Browse files
committed
Merge branch 'desktop-possibilities' of github.com:abner/flutter_js into desktop-possibilities
2 parents 38e3b25 + 3263171 commit b05452f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

linux/flutter_js_plugin.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ void flutter_js_plugin_register_with_registrar(FlPluginRegistrar* registrar) {
8686
g_object_unref);
8787

8888
g_object_unref(plugin);
89+
// get the current executable dir
8990
g_autofree gchar* executable_dir = get_executable_dir();
90-
g_autofree gchar* lib_path =
91-
g_build_filename(executable_dir, "lib", "libquickjs_c_bridge_plugin.so", nullptr);
91+
// resolve the shared library path
92+
g_autofree gchar* lib_path = g_build_filename(executable_dir, "lib", "libquickjs_c_bridge_plugin.so", nullptr);
93+
// share the libpath to Dart through an environment variable
9294
setenv("LIBQUICKJSC_PATH", lib_path, 0);
9395
}
9496

0 commit comments

Comments
 (0)