nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

Plasma 6 Digital Clock widget is missing KDE-PIM calendar integration

Open jansol opened this issue 1 year ago • 40 comments

Describe the bug

The Digital Clock widget in the plasma status bar shows a calendar when clicked, but the option to show calendars from the KDE PIM suite is missing.

Steps To Reproduce

services.desktopManager.plasma6.enable = true;
programs.kde-pim = {
  enable = true;
  kmail = true;
  kontact = true;
  merkuro = true;
};

Expected behavior

If programs.kde-pim.enable = true;, the KDE PIM event source should be listed in available plugins for the calendar of the Digital Clock widget. Or at the very least if Merkuro is also enabled via the corresponding module option.

Screenshots

image

Notify maintainers

@K900

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
fetching path input 'path:/nix/store/hiasfhl8f5yy88hcfbr3s8s4bm63wsjw-source'
 - system: `"x86_64-linux"`
 - host os: `Linux 6.11.0, NixOS, 24.11 (Vicuna), 24.11.20240919.c04d565`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.91.0
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/user/.config/nix/nix.conf:/nix/store/1c1580lym6lyjyrc8hidmdrp21zzxwp8-plasma-workspace-6.1.5/etc/xdg/nix/nix.conf:/nix/store/rfr8ffp1nkli4nlhy2a8pxcqn02gbly8-kglobalacceld-6.1.5/etc/xdg/nix/nix.conf:/nix/store/w33p3hrwxdj129sjbzbbqlc7x9f75xsh-baloo-6.6.0/etc/xdg/nix/nix.conf:/home/user/.config/kdedefaults/nix/nix.conf:/nix/store/1c1580lym6lyjyrc8hidmdrp21zzxwp8-plasma-workspace-6.1.5/etc/xdg/nix/nix.conf:/nix/store/rfr8ffp1nkli4nlhy2a8pxcqn02gbly8-kglobalacceld-6.1.5/etc/xdg/nix/nix.conf:/nix/store/w33p3hrwxdj129sjbzbbqlc7x9f75xsh-baloo-6.6.0/etc/xdg/nix/nix.conf:/nix/store/1c1580lym6lyjyrc8hidmdrp21zzxwp8-plasma-workspace-6.1.5/etc/xdg/nix/nix.conf:/nix/store/rfr8ffp1nkli4nlhy2a8pxcqn02gbly8-kglobalacceld-6.1.5/etc/xdg/nix/nix.conf:/nix/store/w33p3hrwxdj129sjbzbbqlc7x9f75xsh-baloo-6.6.0/etc/xdg/nix/nix.conf:/home/user/.config/kdedefaults/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/user/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/user/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/user/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/15q4w2423rnnxxqfbl0mrsjgbpikziik-lix-2.91.0/share`
 - nixpkgs: `/nix/store/hiasfhl8f5yy88hcfbr3s8s4bm63wsjw-source`

Add a :+1: reaction to issues you find important.

jansol avatar Sep 23 '24 18:09 jansol

It's part of kdepim-addons, which is, confusingly, a separate package, and pulls in most of Plasma, which is why it's not enabled by default.

K900 avatar Sep 23 '24 18:09 K900

Ouch, that is inconvenient...

jansol avatar Sep 23 '24 19:09 jansol

We could add an option for programs.kde-pim.addons or something, I guess.

K900 avatar Sep 23 '24 19:09 K900

How much does it add on top of whatever is pulled in by the plasma6 module?

jansol avatar Sep 23 '24 19:09 jansol

Not a lot, the problem is that you may want KDEPIM on top of not Plasma.

K900 avatar Sep 23 '24 19:09 K900

Right, but how much value does kdepim-addons have on top of Not Plasma?

jansol avatar Sep 23 '24 19:09 jansol

A considerable amount, it's a grab bag of random nonsense that doesn't fit into any other package, so it has plugins for a bunch of other things too.

K900 avatar Sep 23 '24 19:09 K900

Hmm yea, looks like a bit of a mess... For a lack of easier options, maybe it would make indeed sense to have a programs.kde-pim.addons and have it default to true iff the plasma6 module is enabled? Then it would work as expected with Plasma and not clutter Not Plasma unnecessarily.

jansol avatar Sep 23 '24 19:09 jansol

If we do that, we should just set kde-pim.addons.enable in the Plasma module, as we already do for kde-pim.enable. It's better than cursed contextual defaults.

K900 avatar Sep 23 '24 19:09 K900

Oh, I'd missed that part somehow. Yeah that would make sense then. Although I assume that would then always unconditionally pull in all 3 applications from the kde-pim module?

jansol avatar Sep 23 '24 19:09 jansol

It doesn't have to, technically? We could just have them in the store and not expose them in the user environment. ~~Or we could chop up the addons package~~

K900 avatar Sep 23 '24 19:09 K900

I guess splitting up the package is the actual sensible choice. I'll have a look at how bad that could possibly be when I find the time. Could be nice to just bundle the extensions directly with their respective applications where that doesn't introduce new dependencies.

jansol avatar Sep 24 '24 09:09 jansol

Any current workaroud?

monkiki avatar Oct 23 '24 07:10 monkiki

Install kdepim-addons.

K900 avatar Oct 23 '24 07:10 K900

Already installed, but I don't see the option in Digital Clock nor see any event in Digital Clock calendar.

monkiki avatar Oct 23 '24 07:10 monkiki

How did you install it?

K900 avatar Oct 23 '24 07:10 K900

I tried from command line, but it seems it was already installed.

Using Kubuntu 24.10

monkiki avatar Oct 23 '24 07:10 monkiki

Uhh, excuse me? Why are you reporting issues from Kubuntu on a NixOS bug tracker?

K900 avatar Oct 23 '24 07:10 K900

Sorry, you are true: I didn't realize

monkiki avatar Oct 23 '24 09:10 monkiki

I am facing a similar issue, I have kdepim-addons, but no events show up from either the astronomical event and the pim plugin.

I am happy to open a separate issue if necessary

Nick1296 avatar Aug 18 '25 20:08 Nick1296

I'm seeing holidays and astronomical events but calendar events don't show up even if I enable the plugin and select one or more calendars. Possibly related journal output:

akonadiserver[3875]: org.kde.pim.akonadiserver: New notification connection (registered as Akonadi::Server::NotificationSubscriber(0x7f44a02b0e40) )
akonadiserver[3875]: org.kde.pim.akonadiserver: Subscriber Akonadi::Server::NotificationSubscriber(0x7f44a02b0e40) identified as "plasmashell-1562817475 - 643336752"
akonadiserver[3875]: org.kde.pim.akonadiserver: Error while handling command FetchCollections on connection plasmashell-1562817475 (0xfd8f400)

jansol avatar Aug 19 '25 21:08 jansol

Which Akonadi version is this on?

K900 avatar Aug 20 '25 06:08 K900

On my system, running 25.11 I have akonadictl 6.4.3 (25.04.3) These are the relevant logs will flood the journal whenever I select the holiday, astronomical and pim events

Aug 20 10:51:46 Talos plasmashell[4380]: org.kde.pim.akonadicore:  payload data was:  "\x00\x00\x00\x00\x00%\x8C\xEA\x04\xD4HH\x01\x00\x00\x00\xC4\x00G\x00""a\x00m\x00""e\x00s\x00""c\x00o\x00m\x00 \x00S\x00""c\x00r\x00""a\x00t>
Aug 20 10:51:46 Talos plasmashell[4380]: org.kde.pim.akonadicore: Unable to deserialize payload part: "ENVELOPE" in item 32589 collection 44
Aug 20 10:51:46 Talos plasmashell[4380]: org.kde.pim.akonadicore:  payload data was:  "Delivered-To: [my-email-addres]\nReceived: by 2002:a05:6f02:626:b0:8b:3a85:b7f with SMTP id 38csp1715034rce;\n        Mon, 18 Aug 2025>
Aug 20 10:51:46 Talos plasmashell[4380]: org.kde.pim.akonadicore: Unable to deserialize payload part: "HEAD" in item 32589 collection 44

Aug 20 10:51:46 Talos akonadiserver[5261]: org.kde.pim.akonadiserver: Error while handling command FetchCollections on connection plasmashell-2818422154 (0x194c3d90)
Aug 20 10:51:46 Talos plasmashell[4380]: org.kde.plasma.workspace.calendar: "The shared library was not found."
Aug 20 10:51:46 Talos plasmashell[4380]: org.kde.plasma.workspace.calendar: Could not create Plasma Calendar Plugin:  "/usr/lib/qt/plugins/plasmacalendarplugins/holidaysevents.so"
Aug 20 10:51:46 Talos plasmashell[4380]: org.kde.plasma.workspace.calendar: "The shared library was not found."
Aug 20 10:51:46 Talos plasmashell[4380]: org.kde.plasma.workspace.calendar: Could not create Plasma Calendar Plugin:  "/usr/lib/qt/plugins/plasmacalendarplugins/astronomicalevents.so"

Thanks for looking into this!

Nick1296 avatar Aug 20 '25 08:08 Nick1296

Same version here, nixos-unstable with akonadi-25.04.3 and akonadictl 6.4.3

jansol avatar Aug 20 '25 12:08 jansol

Can someone see if this reproduces on 25.08 and 6.4.4?

K900 avatar Aug 20 '25 13:08 K900

I just updated the latest 25.11, and I can confirm this happens with akonadictl 6.5.0 and 25.08.0, should I get akonadictl 6.4.4?

Nick1296 avatar Aug 20 '25 15:08 Nick1296

No, Plasma 6.4.4 is what you want.

K900 avatar Aug 20 '25 15:08 K900

Ok then yes, I have plasma 6.4.4 on nixos-unstable (updated my flake just a few hours ago) and there are the same issues I reported

Nick1296 avatar Aug 21 '25 09:08 Nick1296

OK, can you post the contents of your ~/.config/plasma-org.kde.plasma.desktop-appletsrc?

K900 avatar Aug 21 '25 12:08 K900

Here it is: plasma-org.kde.plasma.desktop-appletsrc.txt I noticed that there are multiple files like this but with different ending in the filename (.mGtyeP, .QynpEU, etc.). Is that normal?

Nick1296 avatar Sep 02 '25 12:09 Nick1296