summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-02-13 15:04:22 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-02-13 15:04:22 +0100
commita14adb9ab9c50cbcd95a2d2e3f42c41fecf73fb0 (patch)
tree74fe96eab9e0a3bcefff551f24d5e7f46acff618 /tdecore
parent4d31e7d405ea7bf530b3d3dd136abff3da52b7ed (diff)
downloadtdelibs-a14adb9ab9c50cbcd95a2d2e3f42c41fecf73fb0.tar.gz
tdelibs-a14adb9ab9c50cbcd95a2d2e3f42c41fecf73fb0.zip
Add search for utempter helper
This resolves Bug 2841 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/kpty.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tdecore/kpty.cpp b/tdecore/kpty.cpp
index 42abd1aed..1e5806133 100644
--- a/tdecore/kpty.cpp
+++ b/tdecore/kpty.cpp
@@ -453,7 +453,7 @@ void KPty::login(const char *user, const char *remotehost)
#ifdef HAVE_UTEMPTER
TDEProcess_Utmp utmp;
utmp.cmdFd = d->masterFd;
- utmp << "/usr/lib/utempter/utempter" << "add";
+ utmp << UTEMPTER_HELPER << "add";
if (remotehost)
utmp << remotehost;
utmp.start(TDEProcess::Block);
@@ -498,7 +498,7 @@ void KPty::logout()
#ifdef HAVE_UTEMPTER
TDEProcess_Utmp utmp;
utmp.cmdFd = d->masterFd;
- utmp << "/usr/lib/utempter/utempter" << "del";
+ utmp << UTEMPTER_HELPER << "del";
utmp.start(TDEProcess::Block);
#elif defined(USE_LOGIN)
const char *str_ptr = d->ttyName.data();