// SPDX-License-Identifier: LGPL-3.0-only // SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts® import std; namespace fs = std::filesystem; // Finds its data the way Crafter.Review finds its process/ directory: at // /../share/, which is /app/share installed and // files/share under -r. int main() { const fs::path lens = fs::read_symlink("/proc/self/exe").parent_path() / ".." / "share" / "demo" / "process" / "lens.md"; std::ifstream in(lens, std::ios::binary); if (!in) { std::println(std::cerr, "no {}", lens.string()); return 1; } std::print("{}", std::string(std::istreambuf_iterator(in), std::istreambuf_iterator())); return 0; }