Skip to content

Commit

Permalink
image: add symlink support (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
qxb3 authored Dec 8, 2024
1 parent cc95e5b commit fb2c026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit fb2c026

Please sign in to comment.