How to solve "Action org.kde.kpmcore.externalcommand.init is not registered"?

I want to use the kde partition manager, but when I open it I just get a window with all the buttons grayed out and unclickable.

I’ve been able to use it before, and it should have popped up a window asking for admin permissions with my password, but for some reason it didn’t.

I tried launching it from the command line, but I got the same result.

Here’s the console output:

Loaded backend plugin:  "pmsfdiskbackendplugin"
Encountered error while checking authorization, error code: PolkitQt1::Authority::E_CheckFailed "GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.kde.kpmcore.externalcommand.init is not registered"

Since this post has the tag nixos, I assume you tried to run the KDE partition manager under NixOS?

Today I encountered exactly the same issue. While debugging, I found out that it is necessary to add the package kdePackages.kpmcore to the system packages for the polkit action to be picked up. It also works if kdePackages.partitionmanager is added to the system packages, as this implicitly adds kpmcore as well:

  environment.systemPackages = [
    pkgs.kdePackages.partitionmanager
  ];

With this configuration, it worked exactly as expected :slight_smile:

It really works. Thank you very much.