[epiphany] ephy-window: same hack to allow ephy to launch itself from app mode



commit 2b04778f114d97dba2e9240bef6c5ba57f372f50
Author: Xan Lopez <xlopez igalia com>
Date:   Mon Aug 29 18:50:22 2011 +0200

    ephy-window: same hack to allow ephy to launch itself from app mode

 src/ephy-window.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index f6ce48d..3a0df31 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2627,6 +2627,10 @@ policy_decision_required_cb (WebKitWebView *web_view,
 			GError *error = NULL;
 
 			return_value = TRUE;
+			/* A gross hack to be able to launch epiphany from within
+			 * Epiphany. Might be a good idea to figure out a better
+			 * solution... */
+			g_unsetenv (EPHY_UUID_ENVVAR);
 			command_line = g_strdup_printf ("gvfs-open %s", uri);
 			g_spawn_command_line_async (command_line, &error);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]