13 lines
545 B
C++
13 lines
545 B
C++
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
||
|
|
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||
|
|
|
||
|
|
// Spike placeholder for the crafter-debug client: reports where it runs.
|
||
|
|
import std;
|
||
|
|
namespace fs = std::filesystem;
|
||
|
|
|
||
|
|
int main(int argc, char** argv) {
|
||
|
|
std::println("crafter-debug spike client at {}", fs::read_symlink("/proc/self/exe").string());
|
||
|
|
std::println("inside a Flatpak sandbox: {}", fs::exists("/.flatpak-info"));
|
||
|
|
for (std::int32_t i = 1; i < argc; ++i) std::println("arg: {}", std::string_view(argv[i]));
|
||
|
|
return 0;
|
||
|
|
}
|