@@ -104,7 +104,7 @@ class QuickshellGlobal: public QObject {
104104 // /
105105 // / The root directory is the folder containing the entrypoint to your shell, often referred
106106 // / to as `shell.qml`.
107- Q_PROPERTY (QString shellRoot READ shellRoot CONSTANT);
107+ Q_PROPERTY (QString configDir READ configDir CONSTANT);
108108 // / Quickshell's working directory. Defaults to whereever quickshell was launched from.
109109 Q_PROPERTY (QString workingDirectory READ workingDirectory WRITE setWorkingDirectory NOTIFY workingDirectoryChanged);
110110 // / If true then the configuration will be reloaded whenever any files change.
@@ -167,6 +167,8 @@ class QuickshellGlobal: public QObject {
167167 // / Setting the `fallback` parameter of `iconPath` will attempt to load the fallback
168168 // / icon if the requested one could not be loaded.
169169 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 ;
170172 // / Equivalent to `${Quickshell.dataDir}/${path}`
171173 Q_INVOKABLE [[nodiscard]] QString dataPath (const QString& path) const ;
172174 // / Equivalent to `${Quickshell.stateDir}/${path}`
@@ -182,7 +184,7 @@ class QuickshellGlobal: public QObject {
182184 void clearReloadPopupInhibit () { this ->mInhibitReloadPopup = false ; }
183185 [[nodiscard]] bool isReloadPopupInhibited () const { return this ->mInhibitReloadPopup ; }
184186
185- [[nodiscard]] QString shellRoot () const ;
187+ [[nodiscard]] QString configDir () const ;
186188
187189 [[nodiscard]] QString workingDirectory () const ;
188190 void setWorkingDirectory (QString workingDirectory);
0 commit comments