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

Have links followed from other applications open in the associated PWA #608

Open
mlncn opened this issue Jan 1, 2025 · 4 comments
Open
Labels
enhancement New feature or request

Comments

@mlncn
Copy link

mlncn commented Jan 1, 2025

This is almost certainly out-of-scope for PWAsForFirefox itself, but it is a natural use case.

Problem Description

I would like to open links to a Jitsi server (or links to any other web application) in the PWA i have set up for that Jitsi server (or any other website we are treating as a web application).

So somebody sends me a meeting link in Zulip, when i click it the PWA associated with that URL handles opening that link.

Proposed Solution

If Firefox can be the default browser, and a Firefox add-on like PWAsForFirefox's can choose which profile gets used when links are opened in the browser, maybe this feature could be built into PWAsForFirefox itself?

Otherwise, we are looking at functionality like https://github.com/jorgenpt/bichrome?tab=readme-ov-file#-bichrome (but in Linux for my use case anyway).

Additional Information

@mlncn mlncn added the enhancement New feature or request label Jan 1, 2025
@filips123
Copy link
Owner

filips123 commented Jan 2, 2025

You can probably partially get this functionality if you enable "automatic web app launching" in the extension settings and and then enable it for web app you want.

When this is enabled, when you open a link that matches installed web app, the link will be automatically opened in the correct web app (and closed in the main Firefox).

However, this feature is experimental and may impact performance.

Also, if you want to have links from one web app to be opened in another, you will also have to enable "open out-of-scope URLs in a default browser" in the web app settings. In this case, the link will first open in the main Firefox, and then in the other web app. In the future, I will improve this so it can be opened directly. You can follow #418 for this.

@renaatdemuynck
Copy link

renaatdemuynck commented Jan 7, 2025

As an alternative to bichrome, there's an open source tool called Browser Tamer that you could use. This also acts as a proxy browser that opens different browsers based on rules you create, but it has a good user interface.
You would need to register each app as a custom browser. I successfully tested this with YouTube and it works like charm:

afbeelding

@renaatdemuynck
Copy link

But it would be very cool to add this functionality to PWAsForFirefox. Maybe let PWAsForFirefox generate/edit a bichrome config file based on the installed apps?

@mlncn
Copy link
Author

mlncn commented Jan 8, 2025

Nice, the built-in functionality is largely what i want!

bichrome and Browser Tamer are non-starters for me because they do not support Linux.

The built-in functionality configured as documented – sorry i missed that – works with some caveats:

  1. It pops up the message that Firefox has crashed; these are the details it provides (fortunately the main instance of Firefox does not crash; no private windows lost for example)
  2. Maybe as a consequence of (1) – and/or other settings i should check – there are two tabs in the app, sometimes one is the crash restore tab.
  3. The tab in main Firefox does not close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants