Skip to content

Add ability to open URLs#1680

Open
The0Show wants to merge 5 commits into
redeclipse:masterfrom
The0Show:openurl
Open

Add ability to open URLs#1680
The0Show wants to merge 5 commits into
redeclipse:masterfrom
The0Show:openurl

Conversation

@The0Show

@The0Show The0Show commented Oct 13, 2025

Copy link
Copy Markdown

Implements #1673
Tested on Arch Linux w/ KDE

Adds the /openurl <s> command, which opens the given URL in the user's default browser.
The command checks if the string begins with http:// or https://, and does nothing if the check fails.

Changes proposed in this request:

  • /openurl <s>
  • /gameui_open_link <s>
  • /setclipboard <s>

The UI and clipboard parts of this pull request are not necessary and can be removed if desired.

It's probably also important to note that no parts of the game's UI actually use these commands yet, they just exist in the console for now :)

Screenshot_20251013_001146

@The0Show The0Show requested a review from a team as a code owner October 13, 2025 05:32

@qreeves qreeves left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Minor code style issues. No objections to other commands added.

Comment thread src/engine/client.cpp Outdated
Comment thread src/engine/client.cpp Outdated
Comment thread src/engine/client.cpp Outdated
Comment thread src/engine/client.cpp Outdated
Comment thread src/engine/client.cpp Outdated
BREAKING CHANGE: `/open_url` is now `/openurl`
`/set_clipboard` is now `/setclipboard`
@The0Show

Copy link
Copy Markdown
Author

Updated the initial comment with new command names.

@The0Show The0Show requested a review from qreeves October 13, 2025 19:33
@The0Show

Copy link
Copy Markdown
Author

I just realized I forgot to request a new review, sorry!

@qreeves

qreeves commented Oct 14, 2025

Copy link
Copy Markdown
Member

Looks good to me, will merge with the next sweep.

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.

3 participants