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
1 changed files with 1 additions and 1 deletions

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"; std::cout << "Found xcursor " << xcursor.path().stem().string() << "\n";
// decompile xcursor // 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())); std::filesystem::canonical(xcursor.path()).string()));
// read the config // read the config