diff options
author | Michael Catanzaro <mcatanzaro@gnome.org> | 2016-10-29 15:56:45 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@gnome.org> | 2016-10-29 15:59:17 -0500 |
commit | 72afb13bf976add0b7adcb354cdb2a0a41a7afae (patch) | |
tree | 3b3277a2518d8292015c661b72d84617fcd43a9a /src/ephy-main.c | |
parent | 82076f20c07043de04fd9cd12b909d080f286b28 (diff) | |
download | epiphany-72afb13bf976add0b7adcb354cdb2a0a41a7afae.tar.gz |
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.
Diffstat (limited to 'src/ephy-main.c')
-rw-r--r-- | 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 e0a3a67f3..3310703ef 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; |