23 lines
443 B
C++
23 lines
443 B
C++
#include "common.hpp"
|
|
|
|
#include <QDir>
|
|
#include <QStandardPaths>
|
|
|
|
namespace ZShell::config {
|
|
|
|
Q_LOGGING_CATEGORY(lcConfig, "zshell.config", QtInfoMsg)
|
|
|
|
QString configDir() {
|
|
const QString dir =
|
|
QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) +
|
|
QStringLiteral("/zshell");
|
|
QDir().mkpath(dir);
|
|
return dir;
|
|
}
|
|
|
|
QString monitorConfigDir() {
|
|
return configDir() + QStringLiteral("/monitors");
|
|
}
|
|
|
|
} // namespace ZShell::config
|