Add AdwCleaner sections
This commit is contained in:
parent
04b2c1c9d9
commit
080e440d23
2 changed files with 18 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ BASE_MENUS = {
|
||||||
MenuEntry('Reboot', 'auto_reboot'),
|
MenuEntry('Reboot', 'auto_reboot'),
|
||||||
),
|
),
|
||||||
'Manual Steps': (
|
'Manual Steps': (
|
||||||
MenuEntry('AdwCleaner', placeholder_function),
|
MenuEntry('AdwCleaner', 'auto_adwcleaner'),
|
||||||
MenuEntry('IO Bit Uninstaller', placeholder_function),
|
MenuEntry('IO Bit Uninstaller', placeholder_function),
|
||||||
MenuEntry('Enable Windows Updates', 'auto_windows_updates_enable'),
|
MenuEntry('Enable Windows Updates', 'auto_windows_updates_enable'),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -535,6 +535,18 @@ def update_main_menu(menus):
|
||||||
|
|
||||||
|
|
||||||
# Auto Repairs: Wrapper Functions
|
# Auto Repairs: Wrapper Functions
|
||||||
|
def auto_adwcleaner(group, name):
|
||||||
|
"""Run AdwCleaner scan.
|
||||||
|
|
||||||
|
save_settings() is called first since AdwCleaner may kill this script.
|
||||||
|
"""
|
||||||
|
save_settings(group, name, done=True, failed=False, message='DONE')
|
||||||
|
result = TRY_PRINT.run('AdwCleaner...', run_adwcleaner, msg_good='DONE')
|
||||||
|
|
||||||
|
# Update with actual results (assuming this script wasn't killed)
|
||||||
|
save_settings(group, name, result=result)
|
||||||
|
|
||||||
|
|
||||||
def auto_backup_power_plans(group, name):
|
def auto_backup_power_plans(group, name):
|
||||||
"""Backup power plans."""
|
"""Backup power plans."""
|
||||||
result = TRY_PRINT.run('Backup Power Plans...', export_power_plans)
|
result = TRY_PRINT.run('Backup Power Plans...', export_power_plans)
|
||||||
|
|
@ -758,6 +770,11 @@ def delete_registry_null_keys():
|
||||||
run_tool('RegDelNull', 'RegDelNull', '-s', '-y', cbin=True)
|
run_tool('RegDelNull', 'RegDelNull', '-s', '-y', cbin=True)
|
||||||
|
|
||||||
|
|
||||||
|
def run_adwcleaner():
|
||||||
|
"""Run AdwCleaner."""
|
||||||
|
run_tool('AdwCleaner', 'AdwCleaner', download=True)
|
||||||
|
|
||||||
|
|
||||||
def run_bleachbit(cleaners, preview=True):
|
def run_bleachbit(cleaners, preview=True):
|
||||||
"""Run BleachBit to either clean or preview files."""
|
"""Run BleachBit to either clean or preview files."""
|
||||||
cmd_args = (
|
cmd_args = (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue