Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix login when running with elevated permissions from non-elevated Jagex Launcher #123

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

YvesW
Copy link
Member

@YvesW YvesW commented Mar 11, 2024

Aims to reduce support traffic and improve user experience by detecting and fixing login problems when the user launches RL with elevated permissions via a Jagex Launcher instance that's not running with elevated permissions.

Originally PRed in #122, but dropped from that PR to split commits into separate PRs. Also swapped over to using native code instead of reg.exe
If there are any other requested changes, feel free to let me know.

@YvesW YvesW changed the title Launcher fix jagex launcher login Fix login when running with elevated permissions from non-elevated Jagex Launcher Mar 11, 2024
Copy link

@pajlada pajlada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Some of your C++ code is formatted with tabs, where previous code looks to be formatted with spaces

liblauncher/elevation.cpp Outdated Show resolved Hide resolved
liblauncher/elevation.cpp Outdated Show resolved Hide resolved
Copy link
Member

@Adam- Adam- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a clang-format file in liblauncher/ you can run over your code to format it.

liblauncher/reg.cpp Outdated Show resolved Hide resolved
liblauncher/reg.cpp Outdated Show resolved Hide resolved
liblauncher/elevation.cpp Outdated Show resolved Hide resolved
@Adam- Adam- requested a review from abextm March 11, 2024 21:20
This checks that the Jagex launcher is able to pass env variables to the
client for the oauth login. If the env variables are unable to be set,
the client instead asks for a RuneScape username/password which is
confusing to users and will not work.

Co-authored-by: YvesW <[email protected]>
@Adam- Adam- force-pushed the launcher-fix-jagex-launcher-login branch from 3d65ea4 to bd52052 Compare March 14, 2024 16:18
@Adam- Adam- merged commit bd52052 into runelite:master Mar 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants