fix: store IPC file in application directory (#5226)

This commit is contained in:
nerix
2024-03-03 13:15:50 +01:00
committed by GitHub
parent 3c13e0c6d2
commit 449c5397b7
6 changed files with 66 additions and 0 deletions
+7
View File
@@ -140,6 +140,13 @@ void Paths::initSubDirectories()
this->pluginsDirectory = makePath("Plugins");
this->themesDirectory = makePath("Themes");
this->crashdumpDirectory = makePath("Crashes");
#ifdef Q_OS_WIN
this->ipcDirectory = makePath("IPC");
#else
// NOTE: We do *NOT* use IPC on non-Windows platforms.
// If we start, we should re-consider this directory.
this->ipcDirectory = "/tmp";
#endif
}
} // namespace chatterino