Skip to content

Feature: Add support for rndebugger: uri scheme on Linux#726

Merged
jhen0409 merged 2 commits into
jhen0409:masterfrom
crloz:feat/add-support-for-xdg-open
Jul 16, 2023
Merged

Feature: Add support for rndebugger: uri scheme on Linux#726
jhen0409 merged 2 commits into
jhen0409:masterfrom
crloz:feat/add-support-for-xdg-open

Conversation

@crloz

@crloz crloz commented Oct 16, 2022

Copy link
Copy Markdown
Contributor

Support rndebugger: URI scheme on Linux (via xdg-open):

  • on Linux, use app.requestSingleInstanceLock()
  • when opened the first time, the uri is read from precess.argv and the port in the URI takes precedence

Usage with Expo:

$ REACT_DEBUGGER="unset ELECTRON_RUN_AS_NODE && xdg-open 'rndebugger://set-debugger-loc?port=19000' ||" yarn start

Packagers for distributions not officially supported should add MimeType=x-scheme-handler/rndebugger; to the .desktop file

@jhen0409

Copy link
Copy Markdown
Owner

Thanks!

@jhen0409 jhen0409 merged commit 3580468 into jhen0409:master Jul 16, 2023
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.

2 participants