@@ -104,7 +104,7 @@ class QuickshellGlobal: public QObject {
104
104
// /
105
105
// / The root directory is the folder containing the entrypoint to your shell, often referred
106
106
// / to as `shell.qml`.
107
- Q_PROPERTY (QString shellRoot READ shellRoot CONSTANT);
107
+ Q_PROPERTY (QString configDir READ configDir CONSTANT);
108
108
// / Quickshell's working directory. Defaults to whereever quickshell was launched from.
109
109
Q_PROPERTY (QString workingDirectory READ workingDirectory WRITE setWorkingDirectory NOTIFY workingDirectoryChanged);
110
110
// / If true then the configuration will be reloaded whenever any files change.
@@ -167,6 +167,8 @@ class QuickshellGlobal: public QObject {
167
167
// / Setting the `fallback` parameter of `iconPath` will attempt to load the fallback
168
168
// / icon if the requested one could not be loaded.
169
169
Q_INVOKABLE static QString iconPath (const QString& icon, const QString& fallback);
170
+ // / Equivalent to `${Quickshell.configDir}/${path}`
171
+ Q_INVOKABLE [[nodiscard]] QString configPath (const QString& path) const ;
170
172
// / Equivalent to `${Quickshell.dataDir}/${path}`
171
173
Q_INVOKABLE [[nodiscard]] QString dataPath (const QString& path) const ;
172
174
// / Equivalent to `${Quickshell.stateDir}/${path}`
@@ -182,7 +184,7 @@ class QuickshellGlobal: public QObject {
182
184
void clearReloadPopupInhibit () { this ->mInhibitReloadPopup = false ; }
183
185
[[nodiscard]] bool isReloadPopupInhibited () const { return this ->mInhibitReloadPopup ; }
184
186
185
- [[nodiscard]] QString shellRoot () const ;
187
+ [[nodiscard]] QString configDir () const ;
186
188
187
189
[[nodiscard]] QString workingDirectory () const ;
188
190
void setWorkingDirectory (QString workingDirectory);
0 commit comments