util: wrap paths in quotes in shell invocations

ref #10
This commit is contained in:
Vaxry 2024-03-17 00:29:04 +00:00
parent 59acebef20
commit 4b9efbed7a

View file

@ -342,7 +342,7 @@ static std::optional<std::string> extractXTheme(const std::string& xpath_, const
std::cout << "Found xcursor " << xcursor.path().stem().string() << "\n";
// decompile xcursor
const auto OUT = spawnSync(std::format("rm -f /tmp/hyprcursor-util/* && cd /tmp/hyprcursor-util && xcur2png {} -d /tmp/hyprcursor-util 2>&1",
const auto OUT = spawnSync(std::format("rm -f /tmp/hyprcursor-util/* && cd /tmp/hyprcursor-util && xcur2png '{}' -d /tmp/hyprcursor-util 2>&1",
std::filesystem::canonical(xcursor.path()).string()));
// read the config