about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2012-02-08 13:01:23 -0600
committerMarco Peereboom <marco@conformal.com>2012-02-08 13:01:23 -0600
commit68d48040d0c70a260ec19073a6a17d76eeff874a (patch)
tree476b97da8819d19aabceb788bb6bd35e938916b7
parent835b976e0c99766e2af5b2ca91b051f11df7872e (diff)
downloadxombrero-68d48040d0c70a260ec19073a6a17d76eeff874a.tar.gz
skip file:// when launching an external app with a downloaded file
-rw-r--r--xxxterm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xxxterm.c b/xxxterm.c
index dd4d1fc..96d2e7d 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -4366,6 +4366,8 @@ download_status_changed_cb(WebKitDownload *download, GParamSpec *spec,
 	if (mime == NULL)
 		return;
 
+	if (g_str_has_prefix(file, "file://"))
+		file += strlen("file://");
 	run_download_mimehandler((char *)mime, (char *)file);
 	g_free(mime);
 }