DevHeads.net

How to disable "Display events" in Digital Clock's Calendar systemwide?

Hi,

I am still using KDE4/Plasma4 desktop.

To prevent Akonadi process from being started, I would like to disable "Display events" in the Digital Clock's Calendar setting at system level.

According to <a href="https://userbase.kde.org/Akonadi" title="https://userbase.kde.org/Akonadi">https://userbase.kde.org/Akonadi</a>

* To ensure that Akonadi is not started, check that no applications require it at login. In particular, open the Digital Clock applet settings, go to Calendar and uncheck Display events to prevent Plasma from requesting information from Akonadi and thus allowing it to start.

I already know how to disable "Dispaly Events" at user level:

* ~/.kde/share/config/plasma-desktop-appletsrc
* displayEvents=false

But if user adds a new panel, this setting on his new panel will get the system default setting (displayEvents=true).

How can I set "displayEvents=false" at system level so that when user adds a new panel it will by default be set as displayEvents=false?

Thanks,

Zaiwen

Comments

Re: How to disable "Display events" in Digital Clock's Calendar

By =?utf-8?Q?Ren=C... at 06/10/2019 - 14:20

My guess is that this is hard-coded, so it would require patching and rebuilding a component.

Your best bet would probably be to find a simpler replacement digital clock/calendar widget which does not use akonadi, install that one and uninstall the standard widget.

R

Re: How to disable "Display events" in Digital Clock's Calendar

By Zaiwen Gong at 06/10/2019 - 14:33

Hi Rene,

Thank you for the reply.

Can you tell me where this seting is hard-coded? Maybe I can ask my developer to take a look and rebuild it.

Thanks,

Zaiwen

How can I set "displayEvents=false" at system level so that when user adds a new panel it will by default be set as displayEvents=false?

My guess is that this is hard-coded, so it would require patching and rebuilding a component.

Your best bet would probably be to find a simpler replacement digital clock/calendar widget which does not use akonadi, install that one and uninstall the standard widget.

R

Re: How to disable "Display events" in Digital Clock's Calendar

By =?utf-8?Q?Ren=C... at 06/11/2019 - 04:09

Hi,

Not precisely, but my guess is that you will find it with

%> (cd /path/to/kde-workspace-source ; fgrep -l displayEvents -R .)
./libs/plasmaclock/calendartable.h
./libs/plasmaclock/calendartable.cpp
./libs/plasmaclock/calendar.cpp
./libs/plasmaclock/calendarConfig.ui
./libs/plasmaclock/calendarHolidaysConfig.ui
./libs/plasmaclock/calendar.h

Good luck!
R.