Commit db4fba3c authored by Jesse van den Kieboom's avatar Jesse van den Kieboom

[osx] Make enchant work in non-bundle installation

parent 2c89a4ae
......@@ -14,16 +14,17 @@
{
char* user_module_dir;
@@ -239,7 +246,7 @@
@@ -239,7 +246,8 @@
module_dirs = enchant_slist_append_unique_path (module_dirs, module_dir);
#if defined(ENCHANT_GLOBAL_MODULE_DIR)
+ if (envdir == NULL || *envdir == '\0')
- module_dirs = enchant_slist_append_unique_path (module_dirs, g_strdup (ENCHANT_GLOBAL_MODULE_DIR));
+ /*module_dirs = enchant_slist_append_unique_path (module_dirs, g_strdup (ENCHANT_GLOBAL_MODULE_DIR));*/
+ module_dirs = enchant_slist_append_unique_path (module_dirs, g_strdup (ENCHANT_GLOBAL_MODULE_DIR));
#else
/* Dynamically locate library and search for modules relative to it. */
prefix = enchant_get_prefix_dir();
@@ -278,6 +285,13 @@
@@ -278,6 +286,13 @@
if (ordering_dir)
conf_dirs = enchant_slist_append_unique_path (conf_dirs, ordering_dir);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment