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 15:04:32 +0100 |
commit | 1e22a0ce39a4871d42ea8987cc2085bc812fad2f (patch) | |
tree | d918276d49b5f915a47a5a0bb08310c578be4f92 /tdecore | |
parent | 7d83a0cb922982e1ef6f3409b8ca1f3dd7ede110 (diff) | |
download | tdelibs-1e22a0ce39a4871d42ea8987cc2085bc812fad2f.tar.gz tdelibs-1e22a0ce39a4871d42ea8987cc2085bc812fad2f.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 'tdecore')
-rw-r--r-- | tdecore/kpty.cpp | 4 |
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(); |