|
|
@ -57,9 +57,9 @@ void Locater::setupLocate(const TQString& binary, const TQString& additionalArgu
|
|
|
|
|
|
|
|
|
|
|
|
// Automatically choose the correct binary if not specified.
|
|
|
|
// Automatically choose the correct binary if not specified.
|
|
|
|
if (binary.isEmpty()) {
|
|
|
|
if (binary.isEmpty()) {
|
|
|
|
if (!KStandardDirs::findExe("slocate").isNull()) {
|
|
|
|
if (!TDEStandardDirs::findExe("slocate").isNull()) {
|
|
|
|
m_binary = "slocate";
|
|
|
|
m_binary = "slocate";
|
|
|
|
} else if (!KStandardDirs::findExe("rlocate").isNull()) {
|
|
|
|
} else if (!TDEStandardDirs::findExe("rlocate").isNull()) {
|
|
|
|
m_binary = "rlocate";
|
|
|
|
m_binary = "rlocate";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
m_binary = "locate";
|
|
|
|
m_binary = "locate";
|
|
|
@ -69,7 +69,7 @@ void Locater::setupLocate(const TQString& binary, const TQString& additionalArgu
|
|
|
|
m_binary = binary;
|
|
|
|
m_binary = binary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m_additionalArguments = additionalArguments;
|
|
|
|
m_additionalArguments = additionalArguments;
|
|
|
|
m_binaryExists = KStandardDirs::findExe(m_binary) != TQString();
|
|
|
|
m_binaryExists = TDEStandardDirs::findExe(m_binary) != TQString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|