2017-01-20 17:44:21 +01:00
|
|
|
Index: plasma-desktop-5.8.5/kcms/dateandtime/helper.cpp
|
|
|
|
===================================================================
|
|
|
|
--- plasma-desktop-5.8.5.orig/kcms/dateandtime/helper.cpp
|
|
|
|
+++ plasma-desktop-5.8.5/kcms/dateandtime/helper.cpp
|
2016-04-21 18:01:22 +02:00
|
|
|
@@ -48,10 +48,6 @@
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
-// We cannot rely on the $PATH environment variable, because D-Bus activation
|
|
|
|
-// clears it. So we have to use a reasonable default.
|
|
|
|
-static const QString exePath = QStringLiteral("/usr/sbin:/usr/bin:/sbin:/bin");
|
|
|
|
-
|
|
|
|
int ClockHelper::ntp( const QStringList& ntpServers, bool ntpEnabled )
|
|
|
|
{
|
|
|
|
int ret = 0;
|
|
|
|
@@ -227,7 +223,7 @@ int ClockHelper::tzreset()
|
|
|
|
|
|
|
|
void ClockHelper::toHwclock()
|
|
|
|
{
|
|
|
|
- QString hwclock = KStandardDirs::findExe(QStringLiteral("hwclock"), exePath);
|
2017-05-26 22:43:31 +02:00
|
|
|
+ QString hwclock = QLatin1String(NIXPKGS_HWCLOCK);
|
2016-04-21 18:01:22 +02:00
|
|
|
if (!hwclock.isEmpty()) {
|
|
|
|
KProcess::execute(hwclock, QStringList() << QStringLiteral("--systohc"));
|
|
|
|
}
|