NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.2k stars 14.2k forks source link

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

Open jansol opened 1 month ago

jansol commented 1 month ago

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.

K900 commented 1 month ago

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.

jansol commented 1 month ago

Ouch, that is inconvenient...

K900 commented 1 month ago

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

jansol commented 1 month ago

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

K900 commented 1 month ago

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

jansol commented 1 month ago

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

K900 commented 1 month ago

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.

jansol commented 1 month ago

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.

K900 commented 1 month ago

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.

jansol commented 1 month ago

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?

K900 commented 1 month ago

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

jansol commented 1 month ago

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.

monkiki commented 3 weeks ago

Any current workaroud?

K900 commented 3 weeks ago

Install kdepim-addons.

monkiki commented 3 weeks ago

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

K900 commented 3 weeks ago

How did you install it?

monkiki commented 3 weeks ago

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

Using Kubuntu 24.10

K900 commented 3 weeks ago

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

monkiki commented 3 weeks ago

Sorry, you are true: I didn't realize