Fix a segfault on startup if ~/.gnome2/evince did not already exist.

Feature safe:	yes
This commit is contained in:
Joe Marcus Clarke 2010-07-06 00:37:54 +00:00
parent 00094fc602
commit 3e596fb83c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=257436
2 changed files with 12 additions and 1 deletions

View File

@ -8,7 +8,7 @@
PORTNAME= evince
PORTVERSION= 2.30.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= graphics print gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2

View File

@ -0,0 +1,11 @@
--- shell/ev-window.c.orig 2010-07-05 20:36:07.000000000 -0400
+++ shell/ev-window.c 2010-07-05 20:36:10.000000000 -0400
@@ -6107,7 +6107,7 @@ ev_window_create_last_settings_metadata
GFile *file;
gchar *path;
- path = g_build_filename (ev_application_get_dot_dir (EV_APP, FALSE), "last_settings", NULL);
+ path = g_build_filename (ev_application_get_dot_dir (EV_APP, TRUE), "last_settings", NULL);
file = g_file_new_for_path (path);
g_free (path);