forked from quickshell/quickshell
core/qmlglobal: add shellRoot property
This commit is contained in:
parent
7db3772641
commit
d2667369e1
2 changed files with 13 additions and 0 deletions
|
@ -166,6 +166,12 @@ void QuickshellGlobal::reload(bool hard) {
|
|||
root->reloadGraph(hard);
|
||||
}
|
||||
|
||||
QString QuickshellGlobal::shellRoot() const {
|
||||
auto* generation = EngineGeneration::findObjectGeneration(this);
|
||||
// already canonical
|
||||
return generation->rootPath.path();
|
||||
}
|
||||
|
||||
QString QuickshellGlobal::workingDirectory() const { // NOLINT
|
||||
return QuickshellSettings::instance()->workingDirectory();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue