fix issue where not running as root caused crash

This commit is contained in:
itsmattkc 2024-05-29 19:22:05 -07:00
parent 65081d42e6
commit e5c276fbc5

View file

@ -249,10 +249,14 @@ void BackendPipe::receivedData()
QByteArray a = m_process->readLine().trimmed();
// Their out is our in which is why these are flipped
if (m_pipeOutFilename.isEmpty()) {
m_pipeOutFilename = a;
if (QFile::exists(a)) {
m_pipeOutFilename = a;
}
} else if (m_pipeInFilename.isEmpty()) {
m_pipeInFilename = a;
emit pipesAvailable(m_pipeInFilename, m_pipeOutFilename);
if (QFile::exists(a)) {
m_pipeInFilename = a;
emit pipesAvailable(m_pipeInFilename, m_pipeOutFilename);
}
} else {
printf("%s\n", a.constData());
}