From 1bd7c2341987fd2d41ba6ebe1bfbaa7dd78e177f Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Thu, 4 Dec 2025 11:53:54 +0500 Subject: [PATCH] fix(settings): Remove surrounding quotes from the value if present Signed-off-by: Boris Yumankulov --- portprotonqt/dialogs.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/portprotonqt/dialogs.py b/portprotonqt/dialogs.py index 190d716..21414a5 100644 --- a/portprotonqt/dialogs.py +++ b/portprotonqt/dialogs.py @@ -1973,6 +1973,9 @@ class ExeSettingsDialog(QDialog): if re.match(r'^[A-Z_0-9]+=[^=]+$', line_stripped) and not line_stripped.startswith('PW_'): # System info k, v = line_stripped.split('=', 1) + # Remove surrounding quotes from the value if present + if v.startswith('"') and v.endswith('"') and len(v) >= 2: + v = v[1:-1] if k.startswith('NUMA_NODE_'): node_id = k[10:] self.numa_nodes[node_id] = v @@ -2019,6 +2022,9 @@ class ExeSettingsDialog(QDialog): try: key, val = line_stripped.split('=', 1) if key in self.toggle_settings or key in ADVANCED_SETTING_KEYS: + # Remove surrounding quotes from the value if present + if val.startswith('"') and val.endswith('"') and len(val) >= 2: + val = val[1:-1] self.current_settings[key] = val except ValueError: continue