about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--unix.c9
-rw-r--r--xombrero.c1
2 files changed, 7 insertions, 3 deletions
diff --git a/unix.c b/unix.c
index a11344b..e7a883e 100644
--- a/unix.c
+++ b/unix.c
@@ -16,5 +16,10 @@
 
 #include <xombrero.h>
 
-/* put this here for now, move away if unix needs something special */
-void	(*os_init)(void);
+void
+init_unix(void)
+{
+	resource_dir = g_strdup("/usr/local/share/xombrero/");
+}
+
+void	(*os_init)(void) = init_unix;
diff --git a/xombrero.c b/xombrero.c
index 56e09c7..674beaf 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -8265,7 +8265,6 @@ main(int argc, char **argv)
 	/* set default dynamic string settings */
 	home = g_strdup(XT_DS_HOME);
 	search_string = g_strdup(XT_DS_SEARCH_STRING);
-	resource_dir = g_strdup("/usr/local/share/xombrero/");
 	strlcpy(runtime_settings, "runtime", sizeof runtime_settings);
 	cmd_font_name = g_strdup(XT_DS_CMD_FONT_NAME);
 	oops_font_name = g_strdup(XT_DS_OOPS_FONT_NAME);
ranger/commit/README?h=v1.9.0&id=7bf5f9672ee79489553506831b7cab54a8609077'>7bf5f967 ^
7dc8fef8 ^
4833bc23 ^

4ea0f69a ^

240394a4 ^

712aa449
240394a4 ^

240394a4 ^
7dc8fef8 ^
9e89f023 ^
36e4e71e ^
20ab9343 ^

20ab9343 ^





4ea0f69a ^

240394a4 ^
7dc8fef8 ^
36e4e71e ^

4a383291 ^
78a7d762 ^
e952d6cb ^
78a7d762 ^
e952d6cb ^
4ea0f69a ^

7838675f ^

07069888 ^

07069888 ^
7838675f ^

1891697f ^
755e7df1 ^
a3d5f44b ^
7838675f ^
7dc8fef8 ^
500cf259 ^


7dc8fef8 ^



240394a4 ^



240394a4 ^
7dc8fef8 ^
240394a4 ^




7dc8fef8 ^
240394a4 ^



e5fb3d74 ^
240394a4 ^

240394a4 ^
7dc8fef8 ^



7b33b517 ^

176e8a68 ^
7b33b517 ^
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96