Bug 187380 - Custom resource colors are not remembered
Summary: Custom resource colors are not remembered
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-17 08:52 UTC by Alex Back
Modified: 2016-03-24 07:56 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Back 2009-03-17 08:52:55 UTC
Version:           4.2 rc1 (using KDE 4.2.0)
Compiler:          gcc 4.3.2 20081105 (Red Hat 4.3.2-7) 
OS:                Linux
Installed from:    Fedora RPMs

I have three resources (local one and two remote calendars) added to korganizer and I assigned each of them a custom color.

=== Usage ===
Right-Click at the resource -> Resource Colors -> Assign Color

Assigning a color works perfect and the view is immediately updated. However after the next reboot of my machine the custom colors are lost and instead some other random colors are set.

If I close the korganizer and start it again everything works perfect.
Comment 1 Alex Back 2009-03-19 11:00:12 UTC
Seems to be that this issue in not reproducable in an easy way, because the last two days it doesn't happen anymore. The colors are remembered correctly and everything is fine.
I'll come with more infos as soon as this happens again.
Comment 2 Alex Back 2009-03-19 17:49:22 UTC
I've encountered the issue again after rebooting my machine. It seems this happens when the korganizer is open and I'll reboot.
Comment 3 Juergen Spitzmueller 2010-06-13 12:24:14 UTC
I see this, too (KDE 4.4.3 on openSuse 11.2). Here, the resources colors seem to change every time Akonadi updates the data.
Comment 4 Torbjörn K. 2011-04-06 15:18:56 UTC
Seems to be still an issue with KDE 4.6 on openSUSE 11.3 with Kontact 4.4.10, Korganizer 4.4.10 and Akonadi 1.5.0.

I've got five additional calendars stored as .ics and connected via Akonadi to Korganizer, which I manually synchronize with my Google Calendars.

Each time I update the calendars in Korganizer (Usage: Calendar List --> right click --> update), the colours are changed to random (and "unhealthy") colours. Not only the colours of these five additional calendars are changed but also custom colours of the two default calendars: Birthdays and Standard/Default.
Comment 5 steinpfeffer 2011-05-24 19:29:58 UTC
The same problem for me. I use a freshly installed KDE 4.6.3 under Arch Linux with Kontact 4.4.11, Korganizer 4.4.11 and Akonadi 1.5.3.

I let Akonadi manage seven *.ics calendars and almost on every startup of KDE their colours are changed randomly.
Comment 6 Torbjörn K. 2011-06-06 10:29:12 UTC
Just want to note, that this issue is still in 4.7 pre. Is there any chance of a workaround or fix? Would be amazing.
Comment 7 Sergio Martins 2011-06-06 14:46:37 UTC
(In reply to comment #6)
> Just want to note, that this issue is still in 4.7 pre. Is there any chance of
> a workaround or fix? Would be amazing.

Can you find a way to reproduce it? Thanks.
Comment 8 Torbjörn K. 2011-06-06 15:16:28 UTC
Well, as I described above in #4, I'm synchronising my Google Calendars via GCALDaemon as the Akonadi gcal plugin is not yet able to deal with more than one calendar of the same Google account.

However, while playing around to narrow down the cause of this bug, I discovered that deactivation of the monitoring of the iCal file and switching to manual synchronisation between the locally stored iCal file and the display in KOrganizer does somehow avoid this bug.

Thus I deduce, that GCALDaemon is completely deleting and recreating the iCal files during synchronisation and consequently Akonadi is getting confused.

I suggest closing this bug. Thanks.
Comment 9 Juergen Spitzmueller 2011-06-12 13:41:53 UTC
FWIW, I also use GCALDaemon to synchronize my Google calendar with Korganizer, so I can confirm what is described in comment #8. Additionally, I just detected that (due to this likely) my kontactrc consists of literally hundreds (!) of "Resources Color" entries of this sort:

akonadi:?collection\x3d127=121,188,54

Deleting those entries had a massive impact on the performance of korganizer (and generally the starting time of Kontact)! So this bug, which ever application is at fault (GCALDAemon or Korganizer or Akonadi) impacts performance.
Comment 10 Juergen Spitzmueller 2011-06-16 10:24:47 UTC
The problem (random color alternations) also occurs with the new CalDAV resource (to Google calendar).
Comment 11 Sergio Martins 2011-07-07 22:09:14 UTC
*** Bug 273978 has been marked as a duplicate of this bug. ***
Comment 12 Sergio Martins 2011-08-20 17:03:08 UTC
Fixed in master.

1708d490d767347ddfdf01f3d749799ff98b4a85

They lost their colors because the collection id changed.