summaryrefslogtreecommitdiff
path: root/sysutils/fsviewer/patches/patch-af
blob: afa3b0c0e2439f4050e83d3f3f0da001ab7ecff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-af,v 1.1 2001/10/05 14:16:04 wiz Exp $

--- defs/chdef.c.orig	Sat Oct  9 20:45:21 1999
+++ defs/chdef.c
@@ -13,6 +13,8 @@
 #include <WINGs.h>
 #include <WUtil.h>
 
+#include <WINGs/proplist-compat.h>
+
 #include "../src/config.h"
 
 static proplist_t FSGetDBObjectForKey(proplist_t dict, char *key);
@@ -371,8 +373,14 @@
 	}
 
 	SetIntegerForKey(0, "DisplayMCListPixmap");
-	
-	PLSave(filesDB, YES);
+
+	{
+	char *home         = NULL;
+	home = wdefaultspathfordomain("FSViewer"); 
+	PLSave(filesDB, home, YES);
+	if (home)
+	    free(home);
+	}
 	result = 0;
     }	    
     else