mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-30 03:15:05 +00:00
feat: add support for getting and setting workdir
This commit is contained in:
8 files changed
+109
-2
No files matched your search
@@ -1,5 +1,6 @@
|
||||
#include "shell.hpp"
|
||||
|
||||
#include <qdir.h>
|
||||
#include <qtmetamacros.h>
|
||||
|
||||
void ShellRoot::setConfig(ShellConfig config) {
|
||||
@@ -9,3 +10,7 @@ void ShellRoot::setConfig(ShellConfig config) {
|
||||
}
|
||||
|
||||
ShellConfig ShellRoot::config() const { return this->mConfig; }
|
||||
|
||||
void ShellConfig::setWorkingDirectory(const QString& workingDirectory) { // NOLINT
|
||||
QDir::setCurrent(workingDirectory);
|
||||
}
|
||||
Reference in new issue
Block a user