Allow building as a non-flatpak app
This commit is contained in:
@@ -22,7 +22,12 @@ import os
|
||||
|
||||
|
||||
def toggle_hidden(game):
|
||||
games_dir = os.path.join(os.environ.get("XDG_DATA_HOME"), "cartridges", "games")
|
||||
games_dir = os.path.join(
|
||||
os.getenv("XDG_DATA_HOME")
|
||||
or os.path.expanduser(os.path.join("~", ".local", "share")),
|
||||
"cartridges",
|
||||
"games",
|
||||
)
|
||||
|
||||
if not os.path.exists(games_dir):
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user