Make sure dot_dir exists before creating last_settings file.

Patch from upstream.

ok ajacoutot@
This commit is contained in:
kevlo 2010-06-09 08:48:13 +00:00
parent 8d294869c6
commit cd95405422
2 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.40 2010/05/20 09:57:21 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.41 2010/06/09 08:48:13 kevlo Exp $
SHARED_ONLY= Yes
@ -12,7 +12,7 @@ GNOME_VERSION= 2.30.1
CATEGORIES= graphics print
PKGNAME-main= ${DISTNAME}p0
PKGNAME-main= ${DISTNAME}p1
PKGNAME-djvu= evince-djvu-${GNOME_VERSION}
PKGNAME-dvi= evince-dvi-${GNOME_VERSION}
PKGNAME-nautilus= nautilus-evince-${GNOME_VERSION}

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-shell_ev-window_c,v 1.5 2010/06/09 08:48:13 kevlo Exp $
--- shell/ev-window.c.orig Wed Jun 9 11:30:27 2010
+++ shell/ev-window.c Wed Jun 9 11:31:30 2010
@@ -6107,7 +6107,7 @@ ev_window_create_last_settings_metadata (EvWindow *win
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);