about summary refs log tree commit diff stats
path: root/xombrero.c
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-07-24 17:02:43 -0400
committerJosh Rickmar <jrick@devio.us>2012-07-24 17:02:43 -0400
commit5ef2a7e302a7460d86208083b93a392fd7106176 (patch)
treee074b9529ce796dfd612b1a6075c9b59fb06e379 /xombrero.c
parent9d6ac474a2454548a5eddaa2eac8b564eec09c72 (diff)
downloadxombrero-5ef2a7e302a7460d86208083b93a392fd7106176.tar.gz
Fix marco's last commit so the donothing binary doesn't show warnings
with show_oops, and document how donothing behaves in the manpage and
example conf.
Diffstat (limited to 'xombrero.c')
-rw-r--r--xombrero.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xombrero.c b/xombrero.c
index e8ca32a..71ba37b 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -5060,9 +5060,13 @@ run_mimehandler(struct tab *t, char *mime_type, WebKitNetworkRequest *request)
 	sv[0] = m->mt_action;
 	sv[1] = (char *)webkit_network_request_get_uri(request);
 	sv[2] = NULL;
+
+	/* ignore donothing from example config */
+	if (m->mt_action && !strcmp(m->mt_action, "donothing"))
+		return (0);
+
 	if (!g_spawn_async(NULL, sv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL,
 	    NULL, &gerr))
-		/* No show_oops here to handle "donothing" example in config */
 		show_oops(t, "%s: could not spawn process (%s)", __func__,
 		    gerr ? gerr->message : "N/A");
 	return (0);