void utils_start_new_geany_instance(const gchar *doc_path) {
- const gchar *command = is_osx_bundle() ? "open" : "geany";
- gchar *exec_path = g_find_program_in_path(command);
- gchar **argv;
- int i, persistent;
- int argc;
- GError *error = NULL;
- for (i = 0, persistent = 0; optentries[i].long_name; i++)
if (optentries_aux[i].persistent)
persistent++;
- argv = g_new0(gchar *, persistent + 5); /* exectuable, -i, --, doc_path, NULL */
- argv[0] = g_build_filename(utils_resource_dir(RESOURCE_DIR_PREFIX), "bin", "geany", NULL);
This apparently is wrong on OSX, see https://github.com/geany/geany/pull/446#commitcomment-10237756 and https://github.com/b4n/geany/pull/1
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/637/files#r38644177
github-comments@lists.geany.org