From 056a775751205951f8f8104f92c667a01d7b15fc Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 8 Jun 2014 07:17:14 -0700 Subject: [PATCH] Set ?dictionary to the correct thing on OS X. Closes #1766. --- libaegisub/unix/path.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libaegisub/unix/path.cpp b/libaegisub/unix/path.cpp index 8e7f76be2..0541e0dbe 100644 --- a/libaegisub/unix/path.cpp +++ b/libaegisub/unix/path.cpp @@ -45,14 +45,15 @@ void Path::FillPlatformSpecificPaths() { SetToken("?user", home/".aegisub"); SetToken("?local", home/".aegisub"); SetToken("?data", P_DATA); + SetToken("?dictionary", "/usr/share/hunspell"); #else agi::fs::path app_support = agi::util::GetApplicationSupportDirectory(); SetToken("?user", app_support/"Aegisub"); SetToken("?local", app_support/"Aegisub"); SetToken("?data", agi::util::GetBundleSharedSupportDirectory()); + SetToken("?dictionary", agi::util::GetBundleSharedSupportDirectory() + "/dictionaries"); #endif SetToken("?temp", boost::filesystem::temp_directory_path()); - SetToken("?dictionary", "/usr/share/hunspell"); } }