+ /* Installed Unix layout: <prefix>/bin/friidump with data under
+ * <prefix>/share/friidump/redump_dat. */
+ if (executable_dir && executable_dir[0] &&
+ redump_join_path(executable_dir, "../share/friidump/redump_dat",
+ basename, candidate, sizeof(candidate))) {
+ if (redump_path_exists(candidate)) {
+ snprintf(out_path, out_path_size, "%s", candidate);
+ return 1;
+ }
+ }
+
+ /* Development convenience for direct source-tree execution. */