Skip to content

Commit

Permalink
Fix beta detection on steam deck
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Apr 10, 2024
1 parent c66f1d1 commit 5182dbe
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion css_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,17 @@ def get_steam_path() -> str:

def is_steam_beta_active() -> bool:
beta_path = os.path.join(get_steam_path(), "package", "beta")
return os.path.exists(beta_path)
if not os.path.exists(beta_path):
return False

with open(beta_path, 'r') as fp:
content = fp.read().strip()

stable_branches = [
"steamdeck_stable",
]

return content not in stable_branches

def create_steam_symlink() -> Result:
return create_symlink(get_theme_path(), os.path.join(get_steam_path(), "steamui", "themes_custom"))
Expand Down

0 comments on commit 5182dbe

Please sign in to comment.