From 53bf247d4f54dbe02bb9eeb3a974bb149fed4e43 Mon Sep 17 00:00:00 2001 From: qxb3 Date: Sun, 8 Dec 2024 10:14:24 +0800 Subject: [PATCH] add symlink support for image --- src/image/Image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image/Image.cpp b/src/image/Image.cpp index 6ba88f5..d3cd4a4 100644 --- a/src/image/Image.cpp +++ b/src/image/Image.cpp @@ -31,7 +31,7 @@ Hyprgraphics::CImage::CImage(const std::string& path) : filepath(path) { mime = "image/jxl"; } else { // magic is slow, so only use it when no recognized extension is found - auto handle = magic_open(MAGIC_NONE | MAGIC_COMPRESS); + auto handle = magic_open(MAGIC_NONE | MAGIC_COMPRESS | MAGIC_SYMLINK); magic_load(handle, nullptr); const auto type_str = std::string(magic_file(handle, path.c_str()));