diff --git a/scripts/wk/hw/ddrescue.py b/scripts/wk/hw/ddrescue.py index c4470e1f..d772e2e4 100644 --- a/scripts/wk/hw/ddrescue.py +++ b/scripts/wk/hw/ddrescue.py @@ -278,10 +278,13 @@ class BlockPair(): 'trim': 'Pending', 'scrape': 'Pending', }) - if 'DISPLAY' in os.environ or 'WAYLAND_DISPLAY' in os.environ: - # Enable opening ddrescueview during recovery - self.view_proc = None - self.map_path.touch() + self.map_path.write_text( + data=DDRESCUE_MAP_TEMPLATE.format( + name=cfg.main.KIT_NAME_FULL, + size=self.size, + ), + encoding='utf-8', + ) # Set initial status self.set_initial_status()