9
66
Fork
You've already forked Bolt
11

Add command line args for playing #2

Open
opened 2025年11月29日 09:38:35 +01:00 by Coso · 2 comments

This would avoid having to manually click "Play" when opening the launcher from Lutris and Steam

E.s. bolt-launcher --play osrs --client rl --character Nix

Or maybe add defaults in the settings and just set --play osrs

This would avoid having to manually click "Play" when opening the launcher from Lutris and Steam E.s. `bolt-launcher --play osrs --client rl --character Nix` Or maybe add defaults in the settings and just set `--play osrs`

This has been a long-requested feature, but it'd be tricky to get right.

I'd still need to open the UI but without showing it to the user, since all the logic for refreshing oauth2 tokens and downloading game updates is in the frontend which is javascript. So there'd need to be a way of preventing Show() from being called, and subsequently we'd need to absolutely guarantee that the UI will self-close within a reasonable amount of time instead of staying hidden forever.

I'd also need to add a way for the frontend to print messages to stderr in the event that the command is incorrect, or download failed, login expired, etc... as otherwise the game just wouldn't open, and the user wouldn't know why.

If bolt is already running, running it again usually sends a message to the original process to re-open the UI, or focus it if it's already open. This introduces a lot of new cases which would need to be handled and tested:

  • what happens if bolt is already running, the UI is/isn't currently open, and you run a --play command, and the command is/isn't successful?
  • what happens if bolt is currently in the middle of running a --play command, so the UI is open but invisible, and another bolt command gets executed during that process? And each of those two commands is/isn't successful?
  • etc?

tldr, I do intend to do this but it's a lot bigger of a request than you'd initially think.

This has been a long-requested feature, but it'd be tricky to get right. I'd still need to open the UI but without showing it to the user, since all the logic for refreshing oauth2 tokens and downloading game updates is in the frontend which is javascript. So there'd need to be a way of preventing `Show()` from being called, and subsequently we'd need to absolutely guarantee that the UI will self-close within a reasonable amount of time instead of staying hidden forever. I'd also need to add a way for the frontend to print messages to stderr in the event that the command is incorrect, or download failed, login expired, etc... as otherwise the game just wouldn't open, and the user wouldn't know why. If bolt is already running, running it again usually sends a message to the original process to re-open the UI, or focus it if it's already open. This introduces a lot of new cases which would need to be handled and tested: - what happens if bolt is already running, the UI is/isn't currently open, and you run a `--play` command, and the command is/isn't successful? - what happens if bolt is currently in the middle of running a `--play` command, so the UI is open but invisible, and another bolt command gets executed during that process? And each of those two commands is/isn't successful? - etc? tldr, I do intend to do this but it's a lot bigger of a request than you'd initially think.

it's a lot bigger of a request than you'd initially think - it is.

If you haven't already started work on this, I have fully coded the issue Coso has raised with a few different implementations for as much support as possible.

> it's a lot bigger of a request than you'd initially think - it is. If you haven't already started work on this, I have fully coded the issue Coso has raised with a few different implementations for as much support as possible.
Sign in to join this conversation.
No Branch/Tag specified
master
zigify
0.23.2
0.23.1
0.23.0
0.22.0
0.21.1
0.21.0
0.20.6
0.20.4
0.20.3
0.20.2
0.20.1
0.20.0
0.19.1
0.19.0
0.18.0
0.17.0
0.16.0
0.15.0
0.14.0
0.13.1
0.13.0
0.12.0
0.11.2
0.11.1
0.11.0
0.10.0
0.9.0
0.8.2
0.8.1
0.8.0
0.7.0
0.6.0
0.5.0
0.4.1
0.4.0
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Adamcake/Bolt#2
Reference in a new issue
Adamcake/Bolt
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?