Adamcake / Bolt

An alternative launcher for your favourite MMO
GNU Affero General Public License v3.0
122 stars 18 forks source link

How to customize RuneLite's launch options? #3

Closed 1player closed 8 months ago

1player commented 8 months ago

I'm using the Flatpak version of Bolt and works great, but I need to customize its launch options -- namely, passing --scale=2 because otherwise it is too small on my 4K screen, and I see no way of doing that in bolt.

Adamcake commented 8 months ago

No way to do that via the interface at the moment, but I could easily add it to the settings area. Do you know of any other launch options that'd be worth adding at the same time?

1player commented 8 months ago

That's the only one I need in GNOME, but I know some users in Sway need to set custom environment variables, see: https://old.reddit.com/r/swaywm/comments/ysg6yx/runelite_wont_stretch_in_sway_but_works_fine_in/

I think the easiest way for you is to call a script that spawn RuneLite rather than spawning Runelite directly, so people can customize the launch options without having to create custom UI. A bit like the Jagex Launcher script for Lutris does: https://github.com/TormStorm/jagex-launcher-linux/blob/main/resources/runelite.sh (ignore the settings they are using here, most of them are outdated or not necessary)

Adamcake commented 8 months ago

Environment variables for Bolt and its subprocesses can be set in flatseal, or by running flatpak with one or more --env switches. Or of course they can be added to the actual env if not using Flatpak. We could also add a customisable list of environment variables to the Bolt UI that would be set in the Runelite process.

Custom launch scripts would be possible with some effort, but would present some sandboxing issues and would not be cross-platform, so I'm not keen to go that route.

Adamcake commented 8 months ago

This seems to work, although runelite itself doesn't seem very versatile with the setting: it only accepts whole numbers and doesn't allow resizing the window when the scale is above 1. Hopefully that's correct and not a mistake I've made. Anyway, this will be in the next release.

1player commented 8 months ago

I only need scale 2. Thanks, looking forward to trying it out.

On Sat, 14 Oct 2023, at 19:10, Adam wrote:

This seems to work, although runelite itself doesn't seem very versatile with the setting: it only accepts whole numbers and doesn't allow resizing the window when the scale is above 1. Hopefully that's correct and not a mistake I've made. Anyway, this will be in the next release.

— Reply to this email directly, view it on GitHub https://github.com/Adamcake/Bolt/issues/3#issuecomment-1763089040, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFIPSBVILG6BD24NES6YWDX7LIR7AVCNFSM6AAAAAA5XYVNNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRTGA4DSMBUGA. You are receiving this because you authored the thread.Message ID: @.***>

Adamcake commented 8 months ago

Added in 0.3 which I've just rolled out today. Assuming you installed via flatpak, give it a day or two, then run flatpak update.

minh-v commented 6 months ago

Sorry to necro - the scaling setting works great, but I'm encountering an issue where when my cursor moves over the Runelite client, it "unscales" itself. Did you deal with something similar? @1player @Adamcake any idea why this would be happening?

Example: image