alienator88 / Pearcleaner

A free, source-available and fair-code licensed mac app cleaner
https://itsalin.com/appInfo/?id=pearcleaner
Other
3.43k stars 81 forks source link

[BUG] Orphaned select and delete all files not working #146

Open Allmight97 opened 5 days ago

Allmight97 commented 5 days ago

Describe the bug:

When I manually select one or more orphaned files I can delete them all with the red delete button. But when I use the select all tick box at the top of the column, it correctly selects all and the red delete shows the total size being removed, but pressing delete does nothing. No prompt, nothing.

Steps to reproduce:

See description.

Expected behavior:

All orphaned files selected with the select all tick box should be removed.

Info:

Screenshots:

N/A

Console Logs (For app crashes or hard to reproduce issues):

N/A

alienator88 commented 5 days ago

It's likely a file it's trying to delete is maybe locked or in use. The logic on the delete button is to stop if it encounters anything funky like that.

Try running this in terminal and try to reproduce the issue. It should hopefully spit out some errors on why it stopped:

log stream --level debug --style compact --predicate 'subsystem == "com.alienator88.Pearcleaner"'

alienator88 commented 5 days ago

While you're at it, can you try this debug version I was working on? It has some fixes for the orphan file logic in there. Pearcleaner.zip