Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

fix: parse uri #1529

Merged
merged 4 commits into from
Nov 14, 2019
Merged

fix: parse uri #1529

merged 4 commits into from
Nov 14, 2019

Conversation

alessiodf
Copy link
Contributor

Summary

The issue in #1520 only occurred if the desktop wallet was already open (i.e. the second-instance event was called). It was caused by --original-process-start-time being added as argv[2] on Windows systems, meaning the URI handler received that string instead of the actual URI. Presumably there was a change to Electron or Chromium to either add that switch or it rearranged the order they were presented in argv.

This PR resolves #1520 by iterating through all the argv array elements to find the URI. This should be more resilient in case any future Electron/Chromium changes modify the order again.

Now works for me on Linux, macOS and Windows both when the wallet is closed and when it's already open.

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

@ghost
Copy link

ghost commented Nov 1, 2019

Thanks for submitting this pull request! A maintainer will review this in the next few days and explicitly select labels so you know what's going on.

If no reviewer appears after a week, a reminder will be sent out.

@ghost ghost added Complexity: Low Less than 64 lines changed. Type: Bugfix The pull request fixes an incorrect functionality or behaviour. labels Nov 1, 2019
@alexbarnsley alexbarnsley added the Bounty: Tier 4 Awarded for small features, refactorings, improvements. This is valued at 20 USD. label Nov 14, 2019
@ghost ghost added the Status: Member Approved The pull request has been approved by a member. label Nov 14, 2019
@ghost
Copy link

ghost commented Nov 14, 2019

A member has approved this PR. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait.

Thank you for your contribution!

@alexbarnsley alexbarnsley merged commit 8f4d6ae into ArkEcosystem:develop Nov 14, 2019
@ghost
Copy link

ghost commented Nov 14, 2019

Your pull request has been merged and marked as tier 4. It will earn you $20 USD.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bounty: Tier 4 Awarded for small features, refactorings, improvements. This is valued at 20 USD. Complexity: Low Less than 64 lines changed. Status: Member Approved The pull request has been approved by a member. Type: Bugfix The pull request fixes an incorrect functionality or behaviour.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Previously working URI no longer working in 2.6.2
2 participants