plasma-desktop: pass path to hwclock through preprocessor macro

This commit is contained in:
Thomas Tuegel
2017-06-18 08:44:45 -05:00
parent 86dac81a70
commit a4be1a68f8
2 changed files with 5 additions and 2 deletions
@@ -18,7 +18,7 @@ Index: plasma-desktop-5.8.5/kcms/dateandtime/helper.cpp
void ClockHelper::toHwclock()
{
- QString hwclock = KStandardDirs::findExe(QStringLiteral("hwclock"), exePath);
+ QString hwclock = "@hwclock@";
+ QString hwclock = QLatin1String(NIXPKGS_HWCLOCK);
if (!hwclock.isEmpty()) {
KProcess::execute(hwclock, QStringList() << QStringLiteral("--systohc"));
}