From 544539725ddba4240ea63c5590b22827509f51fd Mon Sep 17 00:00:00 2001 From: Amadeus Date: Tue, 6 Oct 2026 14:53:05 -0300 Subject: [PATCH] mintinstall.py: Fix NameError when screenshot metadata can't be read get_screenshot_source_from_metadata() printed ss_path in its GLib.Error handler, but that name doesn't exist in this function. Use the path of the screenshot being queried. Co-Authored-By: Claude Opus 5.5 --- usr/lib/linuxmint/mintinstall/mintinstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/linuxmint/mintinstall/mintinstall.py b/usr/lib/linuxmint/mintinstall/mintinstall.py index e72c630..d431231 100755 --- a/usr/lib/linuxmint/mintinstall/mintinstall.py +++ b/usr/lib/linuxmint/mintinstall/mintinstall.py @@ -1753,7 +1753,7 @@ def get_screenshot_source_from_metadata(self, screenshot): if url is not None: return url except GLib.Error as e: - print("Could not retrieve source metadata for screenshot (%s): %s" % (ss_path, e.message)) + print("Could not retrieve source metadata for screenshot (%s): %s" % (screenshot.path, e.message)) return None