aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-file-helpers.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 /lib/ephy-file-helpers.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 'lib/ephy-file-helpers.c')
-rw-r--r--lib/ephy-file-helpers.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 8b61085b4..92adcce1b 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -49,9 +49,6 @@
* atomically.
*/
-#define EPHY_UUID "0d82d98f-7079-401c-abff-203fcde1ece3"
-#define EPHY_UUID_ENVSTRING EPHY_UUID_ENVVAR "=" EPHY_UUID
-
#define DELAY_MAX_TICKS 64
#define INITIAL_TICKS 2
@@ -306,20 +303,8 @@ ephy_file_helpers_init (const char *profile_dir,
EphyFileHelpersFlags flags,
GError **error)
{
- const char *uuid;
gboolean private_profile;
- /* See if we've been calling ourself, and abort if we have */
- uuid = g_getenv (EPHY_UUID_ENVVAR);
- if (uuid && strcmp (uuid, EPHY_UUID) == 0)
- {
- g_warning ("Self call detected, exiting!\n");
- exit (1);
- }
-
- /* Put marker in env */
- g_setenv (EPHY_UUID_ENVVAR, EPHY_UUID, TRUE);
-
ephy_file_helpers_error_quark = g_quark_from_static_string ("ephy-file-helpers-error");
files = g_hash_table_new_full (g_str_hash,
@@ -417,8 +402,6 @@ ephy_file_helpers_shutdown (void)
g_free (tmp_dir);
tmp_dir = NULL;
}
-
- g_unsetenv (EPHY_UUID_ENVVAR);
}
/**