Hello Holger Biber

On 2012-06-01 08:33, Holger Biber wrote:
> 
> I want to set the "SOGoCalendarCategoriesColors" for all users, i.e. I
> want to set it at ~sogo/GNUstep/Defaults/.GNUstepDefaults.
> 
> First try (as user sogo):
>     defaults write sogod SOGoCalendarCategoriesColors
> '({Besprechung=#FFD700;})'
> 
> leads to
> <key>SOGoCalendarCategoriesColors</key>
> <array>
> <dict>
> <key>Besprechung</key>
> <string>#FFD700</string>
> </dict>
> </array>
> in ".GNUstepDefaults".
> When restarting "sogod" as user root these entries are deleted. Why ?
> 
> Second try (as user sogo):
>      defaults write sogod SOGoCalendarCategoriesColors
> '(Besprechung:#FFD700)'
> 
> leads to:
> <key>SOGoCalendarCategoriesColors</key>
> <array>
> <string>Besprechung:#FFD700</string>
> </array>
> in ".GNUstepDefaults".
> When restarting "sogod" as user root these entries are deleted , too !
> 
> What ist the correct syntax for "defaults write" to add these settings ?
> 
> SOGoCalendarCategories "Besprechung" exists and is visible at the webpage.
> 

Sorry, but you can only set
SOGoCalendarDefaultCategoryColor
on the global level.

SOGoCalendarCategoriesColors are a per user defined preference.
You can set them as sogo with:

/usr/sbin/sogo-tool user-preferences set defaults ${UserToChange}
SOGoCalendarCategoriesColors '{"Besprechung": "#FFD700","geselliger
Umtrunk": "#FF0000"}'


Kind regards,
Christian Mack

-- 
Christian Mack
Gruppe Informationsdienste
Rechenzentrum Universität Konstanz
-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to