Review Request 122400: Add timedated support into the clock KCM as an optional dependency

David Edmundson david at davidedmundson.co.uk
Wed Feb 4 15:51:09 UTC 2015



> On Feb. 4, 2015, 3:13 p.m., Martin Gräßlin wrote:
> > could the implementation be split in two files: one for legacy, one for systemd? I think this could make reading the file easier.
> > 
> > Is it possible to determine at compile time whether the systemd component is available? E.g. check whether a dbus file is installed at a known location?
> 
> Bhushan Shah wrote:
>     > Is it possible to determine at compile time whether the systemd component is available? E.g. check whether a dbus file is installed at a known location?
>     
>     there is systemd.pc so perhaps we can have something like FindSystemd.cmake?
> 
> Bhushan Shah wrote:
>     >there is systemd.pc so perhaps we can have something like FindSystemd.cmake?
>     
>     Actually scratch that.. sorry for noise. I just realized why we can not have compile time check
> 
> David Edmundson wrote:
>     I don't think it can be split easily, we'd be splitting main.
>     
>     I deliberatley make it a cmake option rather than querying for systemd
>     libs to make it easier for those deploying shims, such as BSD.
>     
>     We could check for /usr/share/dbus-1/system-services... but arguably they could name it anything.

actually I have #ifdefd half the file, I'll make two mains then.


- David


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122400/#review75415
-----------------------------------------------------------


On Feb. 3, 2015, 11:44 a.m., David Edmundson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122400/
> -----------------------------------------------------------
> 
> (Updated Feb. 3, 2015, 11:44 a.m.)
> 
> 
> Review request for Plasma.
> 
> 
> Repository: plasma-desktop
> 
> 
> Description
> -------
> 
> The current time setting helper is incredibly broken.
> 
> It manually tries to run a range of NTP utilities, all of which are
> deprecated.
> 
> We can just call timedated directly and cut out the middleman as it has
> uses polkit anyway.
> 
> This is currently an optional dependency, and the original helper still
> exists. It makes the code messy, but we have users to support for now.
> 
> Finding timedated is an cmake option rather than querying for systemd
> libs to make it easier for those deploying shims, such as BSD.
> 
> 
> (code is in two commits, first abstracting the saving from the dtime class; then adding in the second save mechanism) 
> 
> 
> Diffs
> -----
> 
>   kcms/dateandtime/CMakeLists.txt 4a987ae 
>   kcms/dateandtime/dateandtime.ui c073b5e 
>   kcms/dateandtime/dtime.h 1a90698 
>   kcms/dateandtime/dtime.cpp 482e483 
>   kcms/dateandtime/main.h c1e5234 
>   kcms/dateandtime/main.cpp 0041a9d 
>   kcms/dateandtime/timedated1.xml PRE-CREATION 
> 
> Diff: https://git.reviewboard.kde.org/r/122400/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> David Edmundson
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20150204/5eb8c88a/attachment.html>


More information about the Plasma-devel mailing list