jmanc3/winbar

Icon cache generation crashes with directory without permissions

D3SOX opened this issue · 2 comments

D3SOX commented

I'm at cf17aa7

I haven't looked at the code, but I guess you are doing some kind of recursive directory listing, and it crashes once it goes into a folder without permissions.

terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error'
  what():  filesystem error: status: Permission denied [/usr/share/kwin/shaders/1.40/1.40]
[1]    457259 IOT instruction (core dumped)  winbar

@D3SOX it should skip folders it doesn't have permissions to in the latest commit: d6d0d15.
Let me know if this fixes your problem.

D3SOX commented

That fixed it!