Some versions of KOrganizer have a bug where it can't memorize the custom colors of categories in the calendar. When the user restarts the program, the whole items in calendar turn back to green color again (the default color). Fortunately, there is a simple hack to get rid from this problem by editing ~/.kde/share/config/korganizerrc file. Thanks to Marc from KDE Bugtrack 333754 page.
The Problem
- Expected behavior: KOrganizer does show category colors of events created by user in the month calendar.
- Actual behavior: KOrganizer does not show category colors; instead, it changes all custom colors into the default color (green).
- Main Problem: KOrganizer does not remember custom category colors.
The Versions
I can confirm that this problem occurs in KOrganizer 4.14.1 (in openSUSE) and 5.1.3 (in Fedora).
The File
The configuration file is korganizerrc, but it is placed in different place depends on the GNU/Linux distribution the user using:
- Fedora 24: ~/.kde/share/config/korganizerrc
- openSUSE Leap 42.1: ~/.kde4/share/config/korganizerrc
The Solution
This is a simple configuration the user can do to make KOrganizer remembers every custom color and show them properly:
(1) By your text editor, edit the ~/.kde/share/config/korganizerrc file. If it does not exist, create it.
(2) Search for [CategoryC Colors2] codes section and edit them like below. If this section does not exist, type it like below. Just change every variable with your own category for KOrganizer events.
[CategoryC Colors2]
Office=255,0,0
Home=255,255,0
Community=0,255,0
(3) Search for [General] codes section and edit them like below. If this section does not exist, again, type it like below. Just change every variable with your own category you have created.
[General]
Custom Categories=Office,Home,Community
(4) Open the program KOrganizer and once again create categories with the same name like what you have chosen in the korganizerrc file. For example, create category Office with red color (RED=255,0,0) then category Home with yellow color (YELLOW=255,255,0) then Community with green color (GREEN=0,255,0). Save them and exit KOrganizer. The whole file should be like screenshot below.
(5) Open KOrganizer again and now it should remember your custom category colors.