-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add a custom protocol handler for JBrowse Desktop #2988
Comments
Hey @rbuels @garrettjstevens can I work on this? |
@raj1701 the code would likely go in this file https://github.com/GMOD/jbrowse-components/blob/main/products/jbrowse-desktop/public/electron.ts we may not have the bandwidth to help, but if you'd like to try, you can |
Sure I will give it a go. Working on this will give me a better understanding of the codebase atleast. |
sounds good. see the short note on the readme here for developing the desktop https://github.com/GMOD/jbrowse-components#quick-start-for-developers specifically I recommend launching two tabs for developing the desktop app. the |
Hey @cmdcolin can you please help me with how the electron app is packaged. |
we do not use electron-packager or electron-fiddle, we use electron-builder. can google around but this is the first google result for electron-builder https://stackoverflow.com/questions/45809064/registering-custom-protocol-at-installation-process-in-electron-app |
the config for builder may be here https://github.com/GMOD/jbrowse-components/blob/main/products/jbrowse-desktop/package.json#L110 |
Thanks @cmdcolin will look into it |
Hey @cmdcolin . I was able to add a custom protocol in windows by adding the following code
After these three the protocol works perfectly in windows but not working in linux. |
sorry no ideas, but great progress @raj1701 :) that is very cool |
Hey @cmdcolin I tried a lot of things but nothing worked for linux. The problem is no .desktop file is getting created. It does work perfectly for windows and mac. The above solution does not disturb the linux app. Should I issue a PR for making it work for windows and mac? Also I wish to apply for GSOC 2023 with jbrowse. Can I pick up some other issue to get familiar with the codebase? Is there some issue you can recommend? |
sure thing, you could create a PR for the work so far with windows/mac. the linux 'landscape' might definitely be more challenging, i don't think a .desktop file always can be counted on for example. it might be we could ship the feature without linux support |
as far as other things to get familiar with the codebase, it is hard to recommend. there are just not a lot of low hanging fruit hanging out in the issue queue for a long time so even our 'good first issues' are significantly involved in many cases. if you want to just browse the issues and see if any are of interest, post and let us know. can also just try to learn background about genomics, bioinformatics, react, typescript, mobx-state-tree, etc. |
Thanks for the help @cmdcolin. I will look into the topics you mentioned and also the Gsoc idea "BLAST integration for JBrowse 2". Also I was thinking of writing a draft proposal for this idea. For getting reviews can I contact you? |
sure thing :) if you are comfortable can post on https://github.com/GMOD/jbrowse-components/discussions or can email me |
Thank you very much @cmdcolin. |
Hey @cmdcolin I have started with an initial draft of the proposal for the idea "BLAST integration for JBrowse 2". Can you please share your email id. |
I believe you can submit draft to the gsoc portal now, and I can read it there |
I have submitted the proposal on the portal @cmdcolin. Please review it |
as mentioned here there is probably a larger effort involved to open up data in desktop related to loading the same data in the view on web into the view on desktop #3579 (comment) just knowing the basics of protocol handlers that you submitted is useful though |
oh sorry I thought you meant to review the PR, you meant the gsoc portal. nevermind above comment |
No problem. Please let me know the changes required in the proposal. I will update it accordingly. Thanks! |
see #3476 for nice mockup of how we could link to desktop from web |
There is an example here of how to register an electron app as a handler for a custom protocol. If we regester e.g. the
jbrowse://
protocol, we could use a link likejbrowse://something
to open JBrowse Desktop from a browser or another app. One use for this could be an "Open in dekstop" menu item in JBrowse Web.The text was updated successfully, but these errors were encountered: