aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-12-12 00:43:10 +0800
committerXan Lopez <xan@igalia.com>2012-12-12 19:22:39 +0800
commit8b97d6e32fbe2e56a7012d731b5e864a86720504 (patch)
treee54a84f5554b8474049bde978734302b5fc37de7 /src/ephy-window.c
parent6ede0c3ebcbc129ea1112ee9f43427231ab50e07 (diff)
downloadgsoc2013-epiphany-8b97d6e32fbe2e56a7012d731b5e864a86720504.tar
gsoc2013-epiphany-8b97d6e32fbe2e56a7012d731b5e864a86720504.tar.gz
gsoc2013-epiphany-8b97d6e32fbe2e56a7012d731b5e864a86720504.tar.bz2
gsoc2013-epiphany-8b97d6e32fbe2e56a7012d731b5e864a86720504.tar.lz
gsoc2013-epiphany-8b97d6e32fbe2e56a7012d731b5e864a86720504.tar.xz
gsoc2013-epiphany-8b97d6e32fbe2e56a7012d731b5e864a86720504.tar.zst
gsoc2013-epiphany-8b97d6e32fbe2e56a7012d731b5e864a86720504.zip
Remove UUID hacks to prevent self-launch
Now we can get rid of them. https://bugzilla.gnome.org/show_bug.cgi?id=690050
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index d1c0170d1..6858b47f8 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2530,10 +2530,7 @@ decide_policy_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);
@@ -2668,10 +2665,7 @@ 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);