Bug 372835

Summary: Korganizer and Digital Clock/Calendar widget keep forgetting of selected Caldav resources
Product: [Frameworks and Libraries] Akonadi Reporter: Martin Ottmar <mirovski36>
Component: DAV ResourceAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: major CC: 3847b8fe-a74d-4b44-a19e-3b68d5e31ed7, AndyKluger, auxsvr, bovender, brezensalzer, ChristianLupus, hufschmt, ideallygrey, kde, kdebugs, kishore96, post, samuele.zappala, stack-kde, uwu, voncloft
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Martin Ottmar 2016-11-23 14:12:43 UTC
Our company CalDav calendar resource contains two calendars called "Personal Callendar" and "Staff".
I'm not using the personal calendar, so I have it permanently disabled.
But, when I enable the "Staff" calendar, by checking a certain CheckBox in Korganizer calendar viewer, or in the panel->Digital Clock Settings->PIM Events Plugin, akonadi (usually) forgets this setting after next plasma session login. Setting this resource as default in the korganizer doesn't have any effect.

This behaviour has been confirmed on (archlinux) machine of my colleague.
This behaviour (in korganizer) is there since KDE-3.5 or before.
This behaviour is new in KF5 for the new style Digital Clock/Calendar plasma widget.

Best regards.
Comment 1 Hufschmidt 2017-02-13 09:09:39 UTC
I'm having a very similar error (at least I think so):

I put the KDE Digital Clock widget on my desktop, enabled the PIM Events plugin, selected a few calendars from the PIM Events Plugin tab and all is fine, eg.
my akonadi/PIM events are listed in the widgets calendar leftclick-popup.

Upon restart though, the popup does not show any events, although all widgets options are still correct.
After I disable and enable the PIM Events Plugin once, everything is back to normal.

My guess is, either there is a bug in the Digital Clock widget which causes plugins to not actually be loaded upon restart or there is a race-condition between the PIM Event Plugin and akonadi/PIM maybe pushing events before the Digital Clock Widget or its PIM Events Plugin is ready.
(I'lll test something...)
Comment 2 Hufschmidt 2017-02-13 09:20:30 UTC
More details:

* I can confirm, this is happening after logout -> login as with Martin Ottmar
* Adding an event in KOrganizer while the PIM Events Plugin is not working does not fix it, so it does not seem like a race-condition between Widget/Plugin and akonadi/PIM.
* OS is Manjaro/archlinux, KDE Plasma 5.8.5, KDE Frameworks 5.30, Kernel 4.9.6
Comment 3 Knut Hildebrandt 2019-02-18 18:53:29 UTC
This did not occur on my installation for a while and thus I thought it had been fixed. But after the latest update I experience this behavior again. The two CalDAV calendars selected in Korganizer are unselected and Birthday/Anniversaries is selected instead.

In the moment this is installed on my machine:

Plasma: 5.15.0
Framworks: 5.55.0
Applications: 18.12.2
QT: 5.12.0
Comment 4 Christian Wolf 2019-04-16 10:02:04 UTC
I think I might be affected by the original bug as well. All my calendars are invisible upon restart of the machine.

I found that restarting akonadi (using `akoandictl restart`) from a terminal while keeping korganizer open triggers the problem as well. At least in my case this disabled all calendars. Maybe you can confirm this triggers the bug as well on your installation.
Comment 5 Celeste Liu 2024-01-17 09:14:46 UTC
I meet this problem on KDE 6.0rc1 (and beta1 beta2). With Digital Clock applet.
Comment 6 Celeste Liu 2024-01-17 10:37:43 UTC
If I delete PIMEventsPlugin section in plasmashellrc, there will be no this section after I click apply. So there must be bad code in save config code.
Comment 7 Celeste Liu 2024-01-17 10:44:22 UTC
Oops. It saves config when plasmashell stops.
Comment 8 Celeste Liu 2024-01-17 10:53:57 UTC
Finally, I found it's a pure UI bug. Event was loaded, but the setting ui display the source as unselected.
Comment 9 Samuele 2024-06-11 10:05:11 UTC
Same problem, encountered in Fedora Linux 40, KDE Plasma 6.0.5, with the Digital Clock.
For a few boots it kept forgetting selected resources. Now it seems it loads them but still shows them as disabled in the applet settings.
This doesn't happen anymore, at least for me, in Merkuro Calendar.
Comment 10 Nicolas F. 2024-09-10 15:41:22 UTC
I'm experiencing this exact issue with Digital Clock Applet's Calendar pop-out. The checked calendars appear to get unchecked on each reboot, and each time the settings are opened.

Plasma 6.1.4, KDE Frameworks 6.5.0, Qt version 6.7.2, Wayland.

Here's a video: https://overviewer.org/~pillow/up/6b3770b224/imgonnascream.mp4
Comment 11 Knut Hildebrandt 2024-12-17 11:52:58 UTC
Still not working. Either in the clock widget and korganizer the selected calendars are constantly forgotten not even after reboot. Just selected them various times in the widget, saved and after reopening the calendars were unselected again. In korganizer the colors are forgotten too. Any idea what configuration file is responsible and should be deleted?

Kontact Version 6.2.3 (24.08.3)
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1
Comment 12 Paul 2025-04-04 10:17:57 UTC
Same issue on KDE Neon.

Upon reboot KOrganizer does not show any content of the calendars (Nextcloud). I can modify the calendars and fetch the collections, but the events are not shown in KOrganizer.

```
KOrganizer
Version 6.3.3 (24.12.3)
```

```
lsb_release -a
No LSB modules are available.
Distributor ID: Neon
Description:    KDE neon 6.3
Release:        24.04
Codename:       noble
```
Comment 13 Lukas Hamm 2025-04-16 17:01:16 UTC
Confirming issue is present in Fedora 42. After selecting my Nextcloud WebDav calendars in the settings for the Digital Clock widget and rebooting the calendars are all unselected.

Fedora 42
Plasma 6.3.4
Comment 14 Tom 2025-04-24 16:44:32 UTC
Same here on Gentoo.
Korganizer version is 24.12.3
Korganzier always forgets selection of all nextcloud calendars (CalDAV) on 2 of 3 computers. Interestingly it does not happen on one computer, but I do not know where the relevant config files are located so I cannot compare them.
Comment 15 voncloft 2025-09-27 05:54:32 UTC
clock widget always unchecks my caldav calendars since kde5 thought it would be fixed in 6, guess i gave the community too much hope