Loading pkgs/kde/plasma/kglobalacceld/default.nix +5 −0 Original line number Diff line number Diff line {mkKdeDerivation}: mkKdeDerivation { pname = "kglobalacceld"; # Don't delete shortcuts when applications disappear from sycoca, # because for us they sometimes do. # FIXME: make them actually not do that instead. patches = [./dont-delete-shortcuts.patch]; } pkgs/kde/plasma/kglobalacceld/dont-delete-shortcuts.patch 0 → 100644 +14 −0 Original line number Diff line number Diff line diff --git a/src/globalshortcutsregistry.cpp b/src/globalshortcutsregistry.cpp index 3cbaded..9adcf38 100644 --- a/src/globalshortcutsregistry.cpp +++ b/src/globalshortcutsregistry.cpp @@ -909,7 +909,8 @@ void GlobalShortcutsRegistry::refreshServices() return false; } - return true; + qCDebug(KGLOBALACCELD) << "NIXPKGS: component" << component->uniqueName() << "disappeared, keeping shortcuts anyway"; + return false; }); m_components.erase(it, m_components.end()); Loading
pkgs/kde/plasma/kglobalacceld/default.nix +5 −0 Original line number Diff line number Diff line {mkKdeDerivation}: mkKdeDerivation { pname = "kglobalacceld"; # Don't delete shortcuts when applications disappear from sycoca, # because for us they sometimes do. # FIXME: make them actually not do that instead. patches = [./dont-delete-shortcuts.patch]; }
pkgs/kde/plasma/kglobalacceld/dont-delete-shortcuts.patch 0 → 100644 +14 −0 Original line number Diff line number Diff line diff --git a/src/globalshortcutsregistry.cpp b/src/globalshortcutsregistry.cpp index 3cbaded..9adcf38 100644 --- a/src/globalshortcutsregistry.cpp +++ b/src/globalshortcutsregistry.cpp @@ -909,7 +909,8 @@ void GlobalShortcutsRegistry::refreshServices() return false; } - return true; + qCDebug(KGLOBALACCELD) << "NIXPKGS: component" << component->uniqueName() << "disappeared, keeping shortcuts anyway"; + return false; }); m_components.erase(it, m_components.end());