From c073a78fedf9b81df0aaa9cb36d783c386539d37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Mon, 2 Sep 2024 09:35:35 +0200 Subject: [PATCH] FIXUP: Change the error message and use `setPlainText` --- dangerzone/gui/main_window.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/dangerzone/gui/main_window.py b/dangerzone/gui/main_window.py index 7a4882fd8..dc04580e9 100644 --- a/dangerzone/gui/main_window.py +++ b/dangerzone/gui/main_window.py @@ -522,16 +522,13 @@ def state_change(self, state: str, error: str) -> None: self.buttons.show() elif state == "not_running": if platform.system() == "Linux": + # "not_running" here means that the `podman image ls` command failed. message = ( "Dangerzone requires Podman

" - "Podman is installed but isn't running.
" - "It could mean that it is not configured properly." + "Podman is installed but cannot run properly. See errors below" ) if error: - message += "

The following error was caught when trying to run podman image list" - - code_snippet = f"
{error.decode()}
" - self.error_text.setHtml(code_snippet) + self.error_text.setPlainText(error.decode()) self.error_text.setVisible(True) self.label.setText(message)