blob: 92bb2ebf41dd079e7fe49a2a73bba7f6eca35731 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Index: src/pulsecore/core-util.c
===================================================================
--- src/pulsecore/core-util.c (revision 2077)
+++ src/pulsecore/core-util.c (revision 2078)
@@ -1129,8 +1129,15 @@
if ((e = getenv("PULSE_CONFIG_PATH")))
fn = lfn = pa_sprintf_malloc("%s/%s", e, local);
- else if (pa_get_home_dir(h, sizeof(h)))
+ else if (pa_get_home_dir(h, sizeof(h))) {
+ char *d;
+
+ d = pa_sprintf_malloc("%s/.pulse", h);
+ mkdir(d, 0755);
+ pa_xfree(d);
+
fn = lfn = pa_sprintf_malloc("%s/.pulse/%s", h, local);
+ }
if (lfn) {
FILE *f;
|