[epiphany] main: default to the default profile in incognito mode
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] main: default to the default profile in incognito mode
- Date: Sat, 29 Oct 2016 21:04:29 +0000 (UTC)
commit 72afb13bf976add0b7adcb354cdb2a0a41a7afae
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Oct 29 15:56:45 2016 -0500
main: default to the default profile in incognito mode
epiphany --incognito-mode unexpectedly behaves differently than the
incognito mode app menu option. It is supposed to steal data from the
default profile directory, but this is currently broken unless the
profile is passed explicitly. The problem is that ephy_dot_dir() is
guaranteed to be NULL here, because ephy_file_helpers_init() has not yet
been called.
src/ephy-main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-main.c b/src/ephy-main.c
index e0a3a67..3310703 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -320,7 +320,7 @@ main (int argc,
}
if (incognito_mode && profile_directory == NULL)
- profile_directory = g_strdup (ephy_dot_dir ());
+ profile_directory = ephy_default_dot_dir ();
/* Start our services */
flags = !application_mode ? EPHY_FILE_HELPERS_ENSURE_EXISTS : 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]