You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #8001 from kozlovsky/fix/cx_freeze_support
Fix `is_frozen`, `get_core_path()`, `get_gui_path()` when `cx_freeze` is used for building binaries
Cherry-pick #7760: Modify check_free_space function to verify availab…
…le disk space
This commit modifies the function `check_free_space`. The function checks if there is enough free space on the disk by calculating the disk usage of a specified folder. If the available space is less than 100MB, an error message is displayed and Tribler exits. The function also logs the amount of free space when it is sufficient. Additionally, in the `start_gui.py` module, the `check_free_space` function now takes a parameter specifying the root state directory to be checked for free space.
Add test cases for check_free_space
- Added new test cases for the `check_free_space` function to ensure it works correctly when there's sufficient disk space and raises an exception when there's insufficient disk space.
- Also added test cases to check the behavior when there's an ImportError or OSError.
(cherry picked from commit b2bc372)
Merge pull request #7747 from kozlovsky/fix/event_manager_reconnect
Add one single attempt to reconnect to the Core in case of EventReqestManager disconnection