diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-02-13 15:04:22 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-02-13 18:48:25 +0100 |
commit | 6c68e92d38a3aeb7a4b05165efe55bd7918c4f75 (patch) | |
tree | 7ebf0b20cf20f5dbb8238fd02b7cc24a38fc882e /kdecore | |
parent | 8193acc745cf000305d85623cd6414e39acee1b6 (diff) | |
download | tdelibs-6c68e92d38a3aeb7a4b05165efe55bd7918c4f75.tar.gz tdelibs-6c68e92d38a3aeb7a4b05165efe55bd7918c4f75.zip |
Add search for utempter helper
This resolves Bug 2841
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit a14adb9ab9c50cbcd95a2d2e3f42c41fecf73fb0)
Diffstat (limited to 'kdecore')
-rw-r--r-- | kdecore/kpty.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kdecore/kpty.cpp b/kdecore/kpty.cpp index c0c7c9756..035ca530a 100644 --- a/kdecore/kpty.cpp +++ b/kdecore/kpty.cpp @@ -453,7 +453,7 @@ void KPty::login(const char *user, const char *remotehost) #ifdef HAVE_UTEMPTER KProcess_Utmp utmp; utmp.cmdFd = d->masterFd; - utmp << "/usr/lib/utempter/utempter" << "add"; + utmp << UTEMPTER_HELPER << "add"; if (remotehost) utmp << remotehost; utmp.start(KProcess::Block); @@ -498,7 +498,7 @@ void KPty::logout() #ifdef HAVE_UTEMPTER KProcess_Utmp utmp; utmp.cmdFd = d->masterFd; - utmp << "/usr/lib/utempter/utempter" << "del"; + utmp << UTEMPTER_HELPER << "del"; utmp.start(KProcess::Block); #elif defined(USE_LOGIN) const char *str_ptr = d->ttyName.data(); |