#include "ConfigPaths.h" #include #include "XenoPaths.h" ConfigPaths::ConfigPaths(QObject* parent) : QObject(parent) {} QString ConfigPaths::workspacesDir() { // The XDG config directory is computed in exactly one place, shared with // the daemon's discovery file and XenoSettings, so the three cannot drift. return QDir(xeno::paths::configDir()).filePath(QStringLiteral("workspaces")); } bool ConfigPaths::ensureWorkspacesDir() { return QDir().mkpath(workspacesDir()); }