diff options
author | Diego Escalante Urrelo <diegoe@igalia.com> | 2012-03-02 05:43:24 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@igalia.com> | 2012-03-11 03:05:16 +0800 |
commit | b0b25d75ac3d8feedb1cc04e10b98e626d7b67ff (patch) | |
tree | f404088d51c763db27d5918e15022f9b3bc1ff2f | |
parent | 804bd8348aa940fc82f8400e643639e9782ff35c (diff) | |
download | gsoc2013-epiphany-b0b25d75ac3d8feedb1cc04e10b98e626d7b67ff.tar gsoc2013-epiphany-b0b25d75ac3d8feedb1cc04e10b98e626d7b67ff.tar.gz gsoc2013-epiphany-b0b25d75ac3d8feedb1cc04e10b98e626d7b67ff.tar.bz2 gsoc2013-epiphany-b0b25d75ac3d8feedb1cc04e10b98e626d7b67ff.tar.lz gsoc2013-epiphany-b0b25d75ac3d8feedb1cc04e10b98e626d7b67ff.tar.xz gsoc2013-epiphany-b0b25d75ac3d8feedb1cc04e10b98e626d7b67ff.tar.zst gsoc2013-epiphany-b0b25d75ac3d8feedb1cc04e10b98e626d7b67ff.zip |
ephy-main: run app mode only with a existing dir
https://bugzilla.gnome.org/show_bug.cgi?id=669700
-rw-r--r-- | src/ephy-main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ephy-main.c b/src/ephy-main.c index 99acbb71b..53f75b8e6 100644 --- a/src/ephy-main.c +++ b/src/ephy-main.c @@ -379,6 +379,11 @@ main (int argc, exit (1); } + if (application_mode && !g_file_test (profile_directory, G_FILE_TEST_IS_DIR)) { + g_print ("--profile must be an existing directory when --application-mode is requested\n"); + exit (1); + } + /* Work-around Flash Player crash */ g_setenv ("XLIB_SKIP_ARGB_VISUALS", "1", FALSE); |