Skip to content

installed apps don’t show up in Ubuntu's "Show Applications" #1439

@samuela

Description

@samuela

Issue description

Apps installed via home-manager don't show up in the Ubuntu "Show Applications" thingy.

See https://discourse.nixos.org/t/home-manager-installed-apps-dont-show-up-in-applications-launcher/8523 for context. https://github.com/rycee/home-manager/blob/master/modules/misc/xdg-mime.nix suggests that home-manager should be adding these applications to the desktop manager database automatically, but for some reason it's not working. Note that running update-desktop-database manually on a copy of the relevant stuff in the nix store does work, as discussed in the Discourse thread.

I have targets.genericLinux.enable = true and verified that $XDG_DATA_DIRS is being set appropriately:

❯ echo $XDG_DATA_DIRS
/nix/var/nix/profiles/default/share:/home/skainswo/.nix-profile/share:/home/skainswo/deleteme:/home/skainswo/.nix-profile/share/applications:/home/skainswo/.nix-profile/share/applications:/home/skainswo/.nix-profile/share/applications:/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop

Here's the entirety of my home.nix: https://gist.github.com/samuela/b507cb3a3effde6117b32700add2f448. I'm running Ubuntu 20.04.

Meta

Maintainer CC

@rycee @Kha

Technical details

❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.4.0-42-generic, Ubuntu, 20.04.1 LTS (Focal Fossa)`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.7`
 - channels(skainswo): `"home-manager, nixpkgs-20.09pre237891.f9eba87bf03"`
 - nixpkgs: `/home/skainswo/.nix-defexpr/channels/nixpkgs`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions