From f200c9335f153c293182afdef6f5be9d1dbbd33c Mon Sep 17 00:00:00 2001 From: William Edwards Date: Wed, 22 Jan 2025 21:28:07 -0800 Subject: [PATCH] fix(Library): handle bad file open for invalid desktop entries --- core/systems/library/library_desktop.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/systems/library/library_desktop.gd b/core/systems/library/library_desktop.gd index a9b551c6..698c32e9 100644 --- a/core/systems/library/library_desktop.gd +++ b/core/systems/library/library_desktop.gd @@ -34,7 +34,10 @@ func _desktop_file_to_launch_item(file: String) -> LibraryLaunchItem: launch_item.installed = true launch_item.categories = [] + logger.debug("Parsing desktop file:", file) var f := FileAccess.open(file, FileAccess.READ) + if not f: + return null var text := f.get_as_text() var lines := text.split("\n") for line in lines: