From 033416cedcb4833f6761ac06225892a276d3d5ff Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 8 Apr 2024 10:23:45 +0100 Subject: [PATCH] util: pack meta with the correct extension fixes #25 --- hyprcursor-util/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyprcursor-util/src/main.cpp b/hyprcursor-util/src/main.cpp index 4be0754..8602d6b 100644 --- a/hyprcursor-util/src/main.cpp +++ b/hyprcursor-util/src/main.cpp @@ -181,7 +181,7 @@ static std::optional createCursorThemeFromPath(const std::string& p zip_source_t* meta = zip_source_file(zip, METADIR.c_str(), 0, 0); if (!meta) return "(1) failed to add meta " + METADIR + " to hlc"; - if (zip_file_add(zip, "meta.hl", meta, ZIP_FL_ENC_UTF_8) < 0) + if (zip_file_add(zip, (std::string{"meta."} + (METADIR.ends_with(".hl") ? "hl" : "toml")).c_str(), meta, ZIP_FL_ENC_UTF_8) < 0) return "(2) failed to add meta " + METADIR + " to hlc"; meta = nullptr;