Skip to content

KDE will not automatically update it's start menu #40915

Closed

Description

Issue description

KDE does not automatically run kbuildsycoca5, thus leading to broken links to software that NixOS is in fact correctly linking in /run/current-system/sw/share/applications

Steps to reproduce

Install KDE Plasma 5.
Use it for a little while.
Notice sometimes stuff like the steam desktop file will not update, or after a nixos-rebuild switch the start menu will not display new packages, either until a logout, a restart, or running kbuildsycoca5 in the terminal.

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.14.41, NixOS, 18.03.132405.ee80654b526 (Impala)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.0.1
  • channels(root): "nixos-18.03, nixos-unstable, nixpkgs"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

Activity

  1. ghost changed the title [-]KDE does not automatically run `kbuildsycoca5`[/-] [+]KDE will not automatically update it's start menu[/+] on May 22, 2018
  2. added
    6.topic: qt/kde
    on May 22, 2018
  3. Anton-Latukha commented on May 24, 2018

    @Anton-Latukha
    Contributor

    Singleton of #20776.

    Informing @ttuegel .

  4. ghost closed this as completedon May 24, 2018
  5. ghost reopened this on May 24, 2018
  6. ttuegel commented on May 24, 2018

    @ttuegel
    Member

    A hook for executing kbuildsycoca5 when upgrading your system would be nice.

    That would be nice, but AFAIK nixos-rebuild does not have hooks. One workaround for individual users would be to make a shell alias, but that's not something we could realistically deploy for everyone using NixOS.

  7. bjornfor commented on May 25, 2018

    @bjornfor
    Contributor

    The activation script mechanism could be used, right?

  8. ttuegel commented on May 28, 2018

    @ttuegel
    Member

    The activation script mechanism could be used, right?

    Can activation scripts run as an arbitrary user?

  9. bjornfor commented on May 30, 2018

    @bjornfor
    Contributor

    I think it runs as root, so we could use su/sudo to arbitrary user.

  10. schmittlauch commented on Oct 23, 2018

    @schmittlauch
    Member

    Hm… This is still happening to me on 18.09: Nearly all start menu entries are broken and give a "Could not find the program" error message. Running kbuildsycoca manually doesn't fix the problem.

    I'm managing most of my software using home-manager though, could that be an issue?

  11. tbenst commented on Jan 8, 2019

    @tbenst
    Contributor

    Same problem for me as @schmittlauch

  12. pirboazo commented on Feb 28, 2019

    @pirboazo

    Same problem for me :-(
    as
    " @Vskilet
    I'm on Nixos 18.09 and when I use kbuildsycoca5 nothing appears on command line ... And one day when I nix-env -ia something ... menu updated . "
    workaround work :-)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    6.topic: qt/kde

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions