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

Can't open link with special scheme #2774

Closed
4 tasks done
loicfavory opened this issue Nov 9, 2024 · 3 comments
Closed
4 tasks done

Can't open link with special scheme #2774

loicfavory opened this issue Nov 9, 2024 · 3 comments
Labels

Comments

@loicfavory
Copy link

Captchas

  • I have read the instructions.
  • I have searched existing issues and avoided creating duplicates.
  • I am not filing an enhancement request.

What happened?

I can't open an extra app from zen browser.
I use an app called Shadow PC (https://shadow.tech) and the app open a link in my browser to log in, then the auth process redirect the request with a token to a link with tech.shadow:// scheme.
It's working with others browsers (firefox, chromium, vivaldi) but not in Zen.

I'm using Flatpak version on Ubuntu 22.04

Reproducible?

  • I have checked that this issue cannot be reproduced on Mozilla Firefox.

Version

1.0.1-a.17 (Firefox 132.0) (64-bit)

What platform are you seeing the problem on?

Linux

Relevant log output

No response

@loicfavory
Copy link
Author

More info :

the app is listed in my content types in zen :
image

The scheme is allowed on the host :
image

Copy link

dosubot bot commented Nov 9, 2024

Hello, @loicfavory! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this together! 😊

I couldn't find specific information about handling custom URL schemes in the Zen browser's Flatpak version. However, a similar issue was resolved by modifying the .desktop file to include the custom URL scheme in the MimeType entry. Here are the steps you can try:

  1. Open the zen.desktop file in a text editor.
  2. Locate the MimeType line.
  3. Add your custom URL scheme in the format x-scheme-handler/<scheme>. For your case, add x-scheme-handler/tech.shadow; to the MimeType line.

Here's an example modification:

[Desktop Entry]
Name=Zen Browser
Comment=Experience tranquillity while browsing the web without people tracking you!
Exec=zen %u
Icon=zen
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall;application/pdf;application/json;x-scheme-handler/tech.shadow;
StartupWMClass=zen-alpha
Categories=Network;WebBrowser;
StartupNotify=true
Terminal=false
X-MultipleArgs=false
Keywords=Internet;WWW;Browser;Web;Explorer;
Actions=new-window;new-private-window;profilemanager;

[Desktop Action new-window]
Name=Open a New Window
Exec=zen %u

[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=zen --private-window %u

[Desktop Action profilemanager]
Name=Open the Profile Manager
Exec=zen --ProfileManager %u

After making these changes, save the file. This should help Zen browser handle the tech.shadow scheme. If the issue persists, it might be related to specific limitations of the Flatpak version, which I couldn't find detailed information on.

To continue talking to Dosu, mention @dosu.

@loicfavory
Copy link
Author

I installed firefox, lose my zenbrowser profile, retried to connect to shadow again and it's working...
I close the issue.

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

No branches or pull requests

1 participant