Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Flatpak] Launch RuneLite via pre-installed Flatpak #95

Open
deadmeu opened this issue Dec 9, 2024 · 3 comments
Open

[Flatpak] Launch RuneLite via pre-installed Flatpak #95

deadmeu opened this issue Dec 9, 2024 · 3 comments

Comments

@deadmeu
Copy link

deadmeu commented Dec 9, 2024

Would it be possible to add functionality such that when launching RuneLite through Bolt, the existing Flatpak net.runelite.RuneLite may be launched instead? I would like to treat Bolt as purely a mechanism for authentication and have my RuneLite data managed in its own space with its own set of permissions.

@Adamcake
Copy link
Owner

Adamcake commented Dec 9, 2024

A mechanism like that would have to assume that everyone is using flatpak for everything, which they may not be. It would also go against flathub's app guidelines which say that a flathub app must use its own sandboxed data and config, and not try to integrate with existing configurations.

@deadmeu
Copy link
Author

deadmeu commented Dec 9, 2024

Does the auth handling performed by Bolt require data to be stored directly in RuneLite's config directories?

I was hoping that there may be a mechanism to pass this data to RuneLite or any other client (either as a CLI argument or maybe using D-Bus). With this, Bolt could make use of something like the App Chooser portal and allow the user to select an existing RuneScape related application to launch with. In this case, there would be no need to modify the data/config of the selected application, so there should be no violation of Flathub's guidelines.

With a standard interface for providing auth/session data to clients, it would allow players to keep their existing client installations (and all of their config, screenshots, data directories, etc.) without Bolt downloading and executing the clients in its own context.

@Adamcake
Copy link
Owner

Bolt is very much designed to manage its own packages. The "custom jar path" exists for people who might want to make source builds on their own PC, but even that is a bit of a hack.

If you want to launch your own installation, it may be best to bypass launchers entirely, and make your own launch script using the environment variables that a launcher would normally set.

env JX_SESSION_ID=... JX_CHARACTER_ID=... flatpak run com.runelite.RuneLite

The session ID only expires if unused for 30 days.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants