Nixpkgs: firefox/thunderbird: no applications are offered to open downloaded files

Created on 30 Nov 2015  路  14Comments  路  Source: NixOS/nixpkgs

For example, if I download a .pdf file or want to open a .pdf attachment out of thunderbird, no application is available per default. I have to browse the executables and set it to something like /run/current-system/sw/bin/evince the first time I want to open a .pdf attachement (similarly with firefox). Ideally, the default applications should somehow be configurable from nix.

bug stale

Most helpful comment

I worked around by choosing the application once (for each file type) and it remembered. EDIT: I chose paths like /run/current-system/sw/bin/foo or ~/.nix-profile/bin/foo.

All 14 comments

IMHO it seems like Mozilla's apps don't follow XDG specs (or not exactly), as we do install *.desktop files, and other apps do know how to find these, e.g. thunar shows a good open with suggestion list when I click a PDF file.

Mozilla uses a Gnome API. I have Gnome installed and it seems to work OK (not great, it seems to default to using gnome applications instead of kde, even when I'm running kde). Maybe it uses a cache which is created by gnome-shell.

I use KDE5 currently, there it doesn't work. (when no gnome is installed there are also no gnome applications offered obviously). I have no idea how to fix this.

(triage) Is this still a problem?

I believe it hasn't changed, though I may've missed something during the last two months.

Profpatsch [email protected] writes:

Is this still a problem?

it is!

Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill

This is still a problem. I use Thunderbird with xmonad as my window manager (without gnome installed); I can't even open web links in emails without manually finding the path to my browser in the store.

Is there a solution for this? Or a workaround? I can't open any links in Thunderbird and it's fairly irritating.

I worked around by choosing the application once (for each file type) and it remembered. EDIT: I chose paths like /run/current-system/sw/bin/foo or ~/.nix-profile/bin/foo.

Any news on this issue?

This is still an issue.

Hmm, I thought I fixed this at least partially in https://github.com/NixOS/nixpkgs/pull/44866. There's definitely something non-standard going on in there since xdg-open does the right thing already.

@michaelpj I spoke too soon. After today's update everything works correctly for me. Also fixed Telegram Desktop's habit of opening my non-default browser.

Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the
    related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse. 3. Ask on the #nixos channel on
    irc.freenode.net.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

copumpkin picture copumpkin  路  3Comments

grahamc picture grahamc  路  3Comments

retrry picture retrry  路  3Comments

teto picture teto  路  3Comments

langston-barrett picture langston-barrett  路  3Comments