diff --git a/dislocker_client.py b/dislocker_client.py index 0356935..5ec1ccb 100644 --- a/dislocker_client.py +++ b/dislocker_client.py @@ -42,6 +42,12 @@ if not os.path.isfile(client_config_path): "master_password_hash": "", "testing": False, "eraser": True, + "erase_data": { + "example": { + "process_name": "example.exe", + "dir_path": "C:\\Users\\example\\AppData\\Local\\example" + } + }, "pc_uuid": "", "pc_token": "", "hard_lock": False diff --git a/dislocker_client_shutdown.py b/dislocker_client_shutdown.py index 91428ac..11428e2 100644 --- a/dislocker_client_shutdown.py +++ b/dislocker_client_shutdown.py @@ -134,6 +134,14 @@ class App(tkinter.Tk): steam_del = self.delete_appdata(process_name="steam.exe", dir_path=f"{appdata_local}\\Steam") ea_del = self.delete_appdata(process_name="EADesktop.exe", dir_path=f"{appdata_local}\\Electronic Arts") riot_del = self.delete_appdata(process_name="RiotClientServices.exe", dir_path=f"{appdata_local}\\Riot Games\\Riot Client") + for i in client_config['erase_data'].keys(): + if i == 'example': + pass + else: + erase_process_name = client_config['erase_data'][i]['process_name'] + erase_dir_path = client_config['erase_data'][i]['dir_path'] + erase_del = self.delete_appdata(process_name=erase_process_name, dir_path=erase_dir_path) + else: print("削除処理をスキップ。") except: