From d58554e17e97caea6871e5a8a5059dc72435a402 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Mon, 9 Aug 2010 20:05:17 +0200 Subject: [PATCH] Relocate the directory in which the lang file is installed --- src/ui/gui/psppire-syntax-window.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/gui/psppire-syntax-window.c b/src/ui/gui/psppire-syntax-window.c index f0a33dbf..7c70cbcb 100644 --- a/src/ui/gui/psppire-syntax-window.c +++ b/src/ui/gui/psppire-syntax-window.c @@ -16,6 +16,8 @@ #include +#include "relocatable.h" + #include #include #include "executor.h" @@ -115,7 +117,8 @@ psppire_syntax_window_class_init (PsppireSyntaxWindowClass *class) int n = g_strv_length (existing_paths); new_paths = g_realloc (new_paths, (n+1) * sizeof (*new_paths)); - new_paths[n] = g_strdup (PKGDATADIR); + + new_paths[n] = g_strdup (relocate (PKGDATADIR)); new_paths[n+1] = NULL; lm = gtk_source_language_manager_new (); -- 2.30.2