mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-12-22 05:19:48 +01:00
gatherer: use absolute path in magic guess
This commit is contained in:
parent
c87af3aa1f
commit
0477df2ca4
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ void CAsyncResourceGatherer::gather() {
|
|||
auto handle = magic_open(MAGIC_NONE | MAGIC_COMPRESS);
|
||||
magic_load(handle, nullptr);
|
||||
|
||||
const auto type_str = std::string(magic_file(handle, path.c_str()));
|
||||
const auto type_str = std::string(magic_file(handle, ABSOLUTEPATH.c_str()));
|
||||
const auto first_word = type_str.substr(0, type_str.find(" "));
|
||||
magic_close(handle);
|
||||
|
||||
|
|
Loading…
Reference in a new issue