Skip to content

Commit

Permalink
Fix deeplinks on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustem Mussabekov committed Jul 10, 2022
1 parent 88f9288 commit 0f43df8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: yarn build:linux
run: yarn build:linux --publish never

- name: publish
uses: snapcore/action-publish@v1
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Build local copy
```
git submodule update --init --recursive
git submodule update --remote --merge
yarn
yarn build:win
Expand Down
6 changes: 5 additions & 1 deletion src/deeplink.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { app } = require('electron')
const { app, dialog } = require('electron')
const path = require('path')
const protocol = 'rnio'

Expand All @@ -14,6 +14,10 @@ module.exports = function(window) {
function onDeepLink(url) {
if (!url) return

//otherwise shutdown for no reason :(
if (process.platform=='linux')
dialog.showMessageBoxSync(window.window, { message: 'Deeplink received!', type: 'none' })

window.window.show()
window.setPath(url.replace(`${protocol}:/`, ''))
}
Expand Down

0 comments on commit 0f43df8

Please sign in to comment.