queer / boxxy

boxxy puts bad Linux applications in a box with only their files.
MIT License
1.6k stars 25 forks source link

Reverse order of self.created_directories during clean up #257

Closed mesaprotector closed 2 months ago

mesaprotector commented 2 months ago

boxxy will fail to exit properly with nested rules, because it deletes the created directories in the same order they were created (ex. if it creates .mozilla first followed by .mozilla/extensions, it will try to delete .mozilla first, which will fail because the directory is not empty, even though boxxy created the subdirectory). This is a one-line fix to the cleanup process that has been tested on my system.

queer commented 2 months ago

Thanks!