MCPcopy Create free account
hub / github.com/deskflow/deskflow / daemonIpcClientConnected

Method daemonIpcClientConnected

src/lib/gui/core/CoreProcess.cpp:133–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133void CoreProcess::daemonIpcClientConnected()
134{
135 applyLogLevel();
136
137 const auto logPath = requestDaemonLogPath();
138 if (logPath.isEmpty()) {
139 qWarning() << "daemon no log path";
140 return;
141 }
142
143 qDebug() << "daemon log path:" << logPath;
144 if (m_daemonFileTail) {
145 m_daemonFileTail->setWatchedFile(logPath);
146 } else {
147 m_daemonFileTail = new FileTail(logPath, this);
148 connect(m_daemonFileTail, &FileTail::newLine, this, &CoreProcess::handleLogLines);
149 }
150}
151
152void CoreProcess::onProcessFinished(int exitCode, QProcess::ExitStatus)
153{

Callers

nothing calls this directly

Calls 2

setWatchedFileMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected