Skip Hidden desktop entry games
This commit is contained in:
@@ -114,6 +114,12 @@ class DesktopSourceIterable(SourceIterable):
|
|||||||
except GLib.GError:
|
except GLib.GError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
|
if keyfile.get_boolean("Desktop Entry", "Hidden"):
|
||||||
|
continue
|
||||||
|
except GLib.GError:
|
||||||
|
pass
|
||||||
|
|
||||||
# Strip /run/host from Flatpak paths
|
# Strip /run/host from Flatpak paths
|
||||||
if entry.is_relative_to(prefix := "/run/host"):
|
if entry.is_relative_to(prefix := "/run/host"):
|
||||||
entry = Path("/") / entry.relative_to(prefix)
|
entry = Path("/") / entry.relative_to(prefix)
|
||||||
|
|||||||
Reference in New Issue
Block a user