forked from quickshell/quickshell
feat: add support for getting and setting workdir
This commit is contained in:
parent
b5f50cd68f
commit
bbe64f42f3
8 changed files with 109 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue