diff options
-rw-r--r-- | unix.c | 9 | ||||
-rw-r--r-- | xombrero.c | 1 |
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); |