Mimetype issue with discord package

Not sure if this is the right place to post, but I’ll do it anyway. I’m having issues with the discord-0.0.9 package. For some reason links will not open in my browser (firefox) when clicked, nothing happens. First I thought this was a mime type issue, but I’ve set all my mime types and default web browser using xdg https://pastebin.com/HE3nEzJk. Calling xdg-open 'https://google.com' opens google in firefox and so does opening other files types like pdfs and pngs in firefox from other applications. The only application I’m having issues with is discord. I also tried installing discord-canary-0.0.98, but I’m having the same issue there as well. I’m currently on NixOS 19.09.1529.808d3c6d123 (Loris) x86_64

Having the same issue here, and can’t find a fix. I decided to install Discord via Flatpak for now - Flatpak together with xdg-desktop-portal-gtk handles links fine.

That’s because there is an error in Nixpkgs:

It should have a discord mimetype handler. As an example, see how it is done for VSCode

The easiest way to fix this is to clone github.com/nixos/nixpkgs and fix it in source, build with nix-build -A discord and install with nix-env -i result (at least for me, when Discord is installed in user profile, I get it shown in gnome-shell applications, which means gnome can find it’s .desktop file when package is installed user-mode)

Would you like to try fix this, verify and contribute the fix to Nixpkgs?

1 Like

Thanks, I will try this and submit a PR if it works

Update: This fixed the issue for me. I’ve now submitted a PR

1 Like