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

runescape-launcher: fix clicking web links in the launcher #208644

Merged
merged 2 commits into from
Jan 28, 2023

Conversation

anoadragon453
Copy link
Member

@anoadragon453 anoadragon453 commented Jan 1, 2023

Description of changes

This PR fixes the behaviour of clicking web links in the runescape launcher. The launcher attempts to call xdg-open <url> when clicking a link in the UI, which will fail if xdg-open is not installed. This PR installs xdg-open into the environment, and clicking links now works.

This PR includes a commit that organises the list of installed packages, so it can be difficult to review all changes. The commit to review that installs xdg-open is 409eff0.

Note: The build of this derivation will fail until #208642 is merged.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

Copy link
Contributor

@GRBurst GRBurst left a comment

Choose a reason for hiding this comment

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

Oh nice, in previous versions it the launcher tried something else iirc (at least I remember that I figured that adding xdg-open is not enough for it to work).
Awesome that it works now, tested it as well!
Thanks 👍

The launcher uses the 'xdg-open' command to open
http URIs in the browser. Without this installed,
clicking links in the launcher will result in nothing
happening.
@anoadragon453
Copy link
Member Author

I've rebased this PR on latest master to fix the merge conflicts.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/1763

@SuperSandro2000 SuperSandro2000 merged commit 327dc97 into NixOS:master Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants