From 031e016df79bc47de97ccfc6956552d2d47858d9 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Thu, 14 May 2015 22:31:40 -0400 Subject: [PATCH] Fix resource path search; the 'libraries' folder isn't always installed. Fixes #1342 --- src/PlatformUtils.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PlatformUtils.cc b/src/PlatformUtils.cc index b2162c8b..2bf83d57 100644 --- a/src/PlatformUtils.cc +++ b/src/PlatformUtils.cc @@ -56,7 +56,9 @@ static std::string lookupResourcesPath() for (int a = 0;searchpath[a] != NULL;a++) { tmpdir = resourcedir / searchpath[a]; - const fs::path checkdir = tmpdir / "libraries"; + // The resource folder is the folder which contains "color-schemes" (as well as + // "examples" and "locale", and optionally "libraries" and "fonts") + const fs::path checkdir = tmpdir / "color-schemes"; PRINTDB("Checking '%s'", boosty::stringy(checkdir).c_str()); if (is_directory(checkdir)) {