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

Couldn't open links in vscode/ium-fhs with Brave Browser in KDE Plasma. #258464

Closed
kostek001 opened this issue Oct 1, 2023 · 5 comments
Closed

Comments

@kostek001
Copy link

kostek001 commented Oct 1, 2023

Describe the bug

Couldn't open links in vscode/ium-fhs with Brave Browser in KDE Plasma.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Try to open link in vscode-fhs or vscodium-fhs
  2. Confirm box will popup
  3. After confirmation nothing happens

Expected behavior

The link opens normally.

Screenshots

Confirm box:
image

Additional context

Solution:
Add execution rights to brave-browser.desktop.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.53, NixOS, 23.11 (Tapir), 23.11.20230917.970a59b`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.0`
 - channels(kostek): `""`
 - channels(root): `"nixos-23.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Oct 1, 2023

Confirm box:

I don't know the language in the screenshot and can't tell you what the actual problem is but it is surely not that chmod +x is missing on the desktop file. I checked some desktop files on my system and they all didn't have it.

  • Try to open link with VSCodium

  • Confirm box will popup

  • After confirmation nothing happens

Are you using vscodium-fhs? Can you reproduce this with xdg-open https://example.com?

@kostek001
Copy link
Author

kostek001 commented Oct 2, 2023

Yes, I'm using vscodium-fhs.

When I use Firefox as your default browser, the problem does not occur.
Firefox shortcut by default has execution permissions:
image

Confirm box in english:
image

I can't reproduce this with xdg-open, it only happens in vscode/ium-fhs.
On vscode/ium, the problem does not occur.

@kostek001 kostek001 changed the title Couldn't open links with Brave Browser in KDE Plasma. Couldn't open links in vscode/ium-fhs with Brave Browser in KDE Plasma. Oct 2, 2023
@SuperSandro2000
Copy link
Member

I can't reproduce this with xdg-open, it only happens in vscode/ium-fhs.

I think the problem is generally related to the fhs, similar to #160923

@kostek001
Copy link
Author

For anyone with this issue, here is fix:
xdg.portal = { enable = true; xdgOpenUsePortal = true; };

@Prn-Ice
Copy link

Prn-Ice commented Feb 4, 2024

Remember to restart after adding this, learnt that the hard way.

For anyone with this issue, here is fix: xdg.portal = { enable = true; xdgOpenUsePortal = true; };

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

Successfully merging a pull request may close this issue.

3 participants