Skip to content

Chromium and Discord doesn't use xdg-open correctly when using sway #96897

@Kazimazi

Description

@Kazimazi

Describe the bug
Opening magnet links in Chromium fails and so does opening links in Discord when I'm using Sway.

To Reproduce
Steps to reproduce the behavior:

  1. Go to piratebay.

  2. Try using a magnet link.

  3. Open Discord.

  4. Click a link.

Expected behavior
When I use a magnet link to download torrent I expect it to open my torrent client (qbittorrent).
In Discord clicking on links should open in Chromium.

Screenshots
Clicking on the open button doesn't do the thing.
Pic here.

Additional context
I only tried in Sway among the wayland compositors. X11 is fine. I haven't tried in Gnome wayland.
The same might be the case with other electron apps.

If I have xdg_utils installed globally, it works as expected. I have no idea why, doesn't Chromium has it as dependency?

Notify maintainers

Give advice if you know whom I should @.
xdg_utils:
@edolstra
Chromium:
@bendlas
@thefloweringash
@primeos
Discord:
@ldesgoui
@MP2E
@tadeokondrak

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 5.7.18, NixOS, 20.03.2868.ff6a070b4ef (Markhor)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.6`
 - channels(root): `"nixos-20.03.2868.ff6a070b4ef, nixos-unstable-20.09pre239318.c59ea8b8a0e"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions