Skip to content

Commit

Permalink
fix(Library): handle bad file open for invalid desktop entries
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowApex committed Jan 23, 2025
1 parent dccb967 commit f200c93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/systems/library/library_desktop.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f200c93

Please sign in to comment.