Hi, thanxs for your guide, I have modified and works fine, here the snippet( in callbacks.c/on_context_action1_activate() ) : - - - - - - - - - - - - - - - - - - - - - - - - /* substitute the wildcard %s and run the command if it is non empty */ if (G_LIKELY(!EMPTY(command))) { gchar *command_line = g_strdup(command);
utils_str_replace_all(&command_line, "%s", word);
// file name added as %f utils_str_replace_all(&command_line, "%f", doc->file_name);
if (!spawn_async(NULL, command_line, NULL, NULL, NULL, &error)) { - - - - - - - - - - - - - - - - - - - - - - - -