mirror of
https://github.com/hyprwm/hyprgraphics.git
synced 2024-12-26 07:29:49 +01:00
image: add symlink support (#1)
This commit is contained in:
parent
cc95e5babc
commit
fb2c026864
1 changed files with 1 additions and 1 deletions
|
@ -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()));
|
||||
|
|
Loading…
Reference in a new issue