diff options
author | Christian Persch <chpe@gnome.org> | 2009-10-25 17:32:01 (GMT) |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2009-10-25 18:38:31 (GMT) |
commit | 14e56a441c3377613fe37bc2d16bf6592c1d2e52 (patch) | |
tree | 4900f7218d2ae2f649670029799cd5424b3b1e89 /shell/ev-application.c | |
parent | 0f1c723ad2fe48a0f22e32619985f93ebb2e02ef (diff) |
[shell] Don't exit with non-writable $HOME
Allow running without out dot dir.
Also, don't warn when loading the print settings and the file just
doesn't exist yet.
Diffstat (limited to 'shell/ev-application.c')
-rw-r--r-- | shell/ev-application.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/ev-application.c b/shell/ev-application.c index 2c6b509..812adae 100644 --- a/shell/ev-application.c +++ b/shell/ev-application.c @@ -884,10 +884,6 @@ ev_application_init (EvApplication *ev_application) "evince", NULL); - /* FIXME: why make this fatal? */ - if (!ev_dir_ensure_exists (ev_application->dot_dir, 0700, NULL)) - exit (1); - #ifdef G_OS_WIN32 { gchar *dir; @@ -998,8 +994,12 @@ ev_application_screensaver_disable (EvApplication *application) } const gchar * -ev_application_get_dot_dir (EvApplication *application) +ev_application_get_dot_dir (EvApplication *application, + gboolean create) { + if (create) + g_mkdir_with_parents (application->dot_dir, 0700); + return application->dot_dir; } |