Skip Hidden desktop entry games

This commit is contained in:
kramo
2023-09-21 16:28:05 +02:00
parent a8b1791d8f
commit 421d534d79

View File

@@ -114,6 +114,12 @@ class DesktopSourceIterable(SourceIterable):
except GLib.GError:
pass
try:
if keyfile.get_boolean("Desktop Entry", "Hidden"):
continue
except GLib.GError:
pass
# Strip /run/host from Flatpak paths
if entry.is_relative_to(prefix := "/run/host"):
entry = Path("/") / entry.relative_to(prefix)