Skip to content

Commit

Permalink
storage['arguments'] is not defined during code-init, falling back to…
Browse files Browse the repository at this point in the history
… sys.argv for cosmic-greeter check
  • Loading branch information
Torxed committed Aug 21, 2024
1 parent 51c59c9 commit 8f06e94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion archinstall/default_profiles/profile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import sys
from enum import Enum, auto
from typing import List, Optional, Any, Dict, TYPE_CHECKING

Expand Down Expand Up @@ -36,7 +37,7 @@ class GreeterType(Enum):
Ly = 'ly'

# .. todo:: Remove when we un-hide cosmic behind --advanced
if storage['arguments'].get('advanced', False) is True:
if '--advanced' in sys.argv:
CosmicSession = "cosmic-greeter"

class SelectResult(Enum):
Expand Down

0 comments on commit 8f06e94

Please sign in to comment.