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

Open in desktop #6667

Closed
wants to merge 13 commits into from
Closed

Open in desktop #6667

wants to merge 13 commits into from

Conversation

btzr-io
Copy link
Collaborator

@btzr-io btzr-io commented Jul 23, 2021

PR Checklist

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I added a line describing my change to CHANGELOG.md
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Fixes

Issue Number: #6703, #6659
Changelog update: #6735

Web -> Desktop

image

@kauffj
Copy link
Member

kauffj commented Jul 26, 2021

I like the intent of this but we're trying to keep Odysee and LBRY Desktop strongly separated. Please discuss with me over chat.

@kauffj kauffj closed this Jul 26, 2021
@kauffj
Copy link
Member

kauffj commented Jul 26, 2021

Odysee apps can know about Odysee other apps. LBRY cannot know about Odysee. Odysee can know about LBRY URLs, so this may be a way to facilitate Odysee -> LBRY.

@btzr-io
Copy link
Collaborator Author

btzr-io commented Jul 26, 2021

Odysee apps can know about Odysee other apps. LBRY cannot know about Odysee. Odysee can know about LBRY URLs, so this may be a way to facilitate Odysee -> LBRY.

I'll remove the 'Open in web' button.

@btzr-io btzr-io reopened this Jul 26, 2021
@btzr-io btzr-io requested a review from roylee17 July 26, 2021 18:07
@btzr-io btzr-io removed the request for review from roylee17 July 26, 2021 18:07
@btzr-io btzr-io requested a review from kauffj July 26, 2021 18:08
@btzr-io
Copy link
Collaborator Author

btzr-io commented Jul 26, 2021

@kauffj When I open an external 'lbry://' link on the browser, the desktop app doesn't resolve it. This PR also fixes that bug.

@btzr-io btzr-io changed the title Open in external platform ( desktop / web ) Open in desktop Jul 26, 2021
@btzr-io
Copy link
Collaborator Author

btzr-io commented Jul 29, 2021

Changelog update: #6735

@btzr-io
Copy link
Collaborator Author

btzr-io commented Aug 2, 2021

Can someone test or review this ?

@roylee17
Copy link

roylee17 commented Aug 2, 2021

Can someone test or review this ?

Thanks for your contribution.
I'd recommend @jessopb for reviewing.

Copy link
Member

@kauffj kauffj left a comment

Choose a reason for hiding this comment

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

The code looks fine but I still have concerns about introducing this element on Odysee, where many users will not have LBRY Desktop.

What's the UX like when the user does not have the desktop app installed? Is there a way we can explain to those users what this feature does?

@btzr-io
Copy link
Collaborator Author

btzr-io commented Aug 3, 2021

What's the UX like when the user does not have the desktop app installed?

I think is ignored if there is no protocol handler registered.

@btzr-io
Copy link
Collaborator Author

btzr-io commented Aug 3, 2021

What's the UX like when the user does not have the desktop app installed?

Here are some initial ideas:

  • Show a modal to inform the user about the desktop app
  • Open a link ( on a new tab ) directly to the lbry website: https://lbry.com/get

@btzr-io
Copy link
Collaborator Author

btzr-io commented Aug 3, 2021

A similar approach to spotify "Open in desktop" feature will be:

  1. Try to open custom protocol link
  2. Wait a few seconds then redirect to https://lbry.com/get

It will probably require a custom route or param for open.lbry.com:

https://open.lbry.com/desktop/{LBRY_URI}
https://open.lbry.com/{LBRY_URI}?desktop=true

@btzr-io
Copy link
Collaborator Author

btzr-io commented Aug 4, 2021

This requires more additional work, I removed all the UI changes #6779

@Snake883
Copy link

Snake883 commented Aug 7, 2021

This half way works. I'll explain...

I want the LBRY Desktop app to accept a parameter for a link, and go to the link.

Functionality

Function 1: Protocol ("LBRY://")

In Windows Run, I want the associated program to open the link:
image

Function 2: LBRY.exe Parameter ("c:\program files\LBRY\LBRY.exe %1")

image

Functional Test 1

LBRY Desktop running.

Test 1A

Failed test.
In both functions, LBRY Desktop receives focus. But, LBRY Desktop does not go to the link.

Test 1B

In both functions, LBRY Desktop receives focus. But, LBRY Desktop does not go to the link.

Functional Test 2

LBRY Desktop not running.

Test 2A

Passed test.
In both functions, LBRY Desktop receives focus and LBRY Desktop goes to the link.

Test 2B

Passed test.
In both functions, LBRY Desktop receives focus and LBRY Desktop goes to the link.

@btzr-io
Copy link
Collaborator Author

btzr-io commented Aug 7, 2021

@Snake883
Copy link

Snake883 commented Aug 9, 2021

Did you try https://github.com/lbryio/lbry-desktop/releases/tag/untagged-aa3ae8f9162b42aace2a ?

@btzr-io I couldn't get your link to work.

@btzr-io
Copy link
Collaborator Author

btzr-io commented Aug 9, 2021

@snakyjake1 Whats your current desktop version ? Where Test 1A, Test 1B run using v0.51.0-rc.2 ?

@Snake883
Copy link

Snake883 commented Aug 9, 2021

Whats your current desktop version?

Both tests on v0.51.1.
image

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.

None yet

5 participants