Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/infinity_arcade/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def main():
print("Starting Infinity Arcade...")
print("Press Ctrl+C to quit")

port = 8080
port = 8081

# Start the server in a separate thread
def run_server():
Expand Down
16 changes: 12 additions & 4 deletions src/lemonade_client/lemonade_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,19 @@ async def execute_lemonade_server_command(
)

# Python module fallback (most reliable after pip install)
commands_to_try.append([sys.executable, "-m", "lemonade_server"] + args)
# Only use sys.executable with -m flag in non-frozen environments
if not self.is_pyinstaller_environment():
commands_to_try.append(
[sys.executable, "-m", "lemonade_server"] + args
)
else:
# Linux/Unix: Try lemonade-server-dev first, then Python module fallback
commands_to_try.append(["lemonade-server-dev"] + args)
commands_to_try.append([sys.executable, "-m", "lemonade_server"] + args)
# Only use sys.executable with -m flag in non-frozen environments
if not self.is_pyinstaller_environment():
commands_to_try.append(
[sys.executable, "-m", "lemonade_server"] + args
)

for i, cmd in enumerate(commands_to_try):
try:
Expand Down Expand Up @@ -695,7 +703,7 @@ async def download_and_install_lemonade_server(self):
)
return {
"success": True,
"message": "Installer launched. Please complete the installation and then restart Infinity Arcade.",
"message": "Installer launched. Please complete the installation.",
"interactive": True,
}
else:
Expand Down Expand Up @@ -984,7 +992,7 @@ async def get_system_info(
unless cache_duration_hours is explicitly set.

Args:
cache_dir: Directory to store cache file (defaults to ~/.infinity-arcade)
cache_dir: Directory to store cache file (defaults to ~/.cache/lemonade)
cache_duration_hours: Hours to keep cached data (None = never expire, default)

Returns:
Expand Down
Loading