From 3d8e8a871597b85262fdc9cc3c4bc46fc7ebd56a Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Fri, 1 Jul 2016 04:34:04 -0700 Subject: [PATCH] Fix when fish isn't already installed This was still wrong. --- src/fish.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fish.cpp b/src/fish.cpp index 4e2d7df16..7e99342c4 100644 --- a/src/fish.cpp +++ b/src/fish.cpp @@ -126,14 +126,14 @@ static struct config_paths_t determine_config_directory_paths(const char *argv0) // link CF, use this lame approach to test it: see if the resolved path ends with // /Contents/MacOS/fish, case insensitive since HFS+ usually is. if (!done) { - const char *suffix = "/Contents/Resources/base/bin/fish"; + const char *suffix = "Contents/Resources/base/bin/fish"; const size_t suffixlen = strlen(suffix); if (has_suffix(exec_path, suffix, true)) { // Looks like we're a bundle. Cut the string at the / prefixing /Contents... and // then the rest. wcstring wide_resolved_path = str2wcstring(exec_path); wide_resolved_path.resize(exec_path.size() - suffixlen); - wide_resolved_path.append(L"/Contents/Resources/"); + wide_resolved_path.append(L"Contents/Resources/base/"); // Append share, etc, doc. paths.data = wide_resolved_path + L"share/fish";