@@ -108,9 +108,11 @@ class QuickshellGlobal: public QObject {
108108 // /
109109 // / The root directory is the folder containing the entrypoint to your shell, often referred
110110 // / to as `shell.qml`.
111+ Q_PROPERTY (QString shellDir READ shellDir CONSTANT);
112+ // / > [!WARNING] Deprecated: Renamed to @@shellDir for clarity.
111113 Q_PROPERTY (QString configDir READ configDir CONSTANT);
112- // / > [!WARNING] Deprecated: Returns @@configDir .
113- Q_PROPERTY (QString shellRoot READ configDir CONSTANT);
114+ // / > [!WARNING] Deprecated: Renamed to @@shellDir for consistency .
115+ Q_PROPERTY (QString shellRoot READ shellRoot CONSTANT);
114116 // / Quickshell's working directory. Defaults to whereever quickshell was launched from.
115117 Q_PROPERTY (QString workingDirectory READ workingDirectory WRITE setWorkingDirectory NOTIFY workingDirectoryChanged);
116118 // / If true then the configuration will be reloaded whenever any files change.
@@ -198,6 +200,8 @@ class QuickshellGlobal: public QObject {
198200 // / icon if the requested one could not be loaded.
199201 Q_INVOKABLE static QString iconPath (const QString& icon, const QString& fallback);
200202 // / Equivalent to `${Quickshell.configDir}/${path}`
203+ Q_INVOKABLE [[nodiscard]] QString shellPath (const QString& path) const ;
204+ // / > [!WARNING] Deprecated: Renamed to @@shellPath() for clarity.
201205 Q_INVOKABLE [[nodiscard]] QString configPath (const QString& path) const ;
202206 // / Equivalent to `${Quickshell.dataDir}/${path}`
203207 Q_INVOKABLE [[nodiscard]] QString dataPath (const QString& path) const ;
@@ -214,7 +218,9 @@ class QuickshellGlobal: public QObject {
214218 void clearReloadPopupInhibit () { this ->mInhibitReloadPopup = false ; }
215219 [[nodiscard]] bool isReloadPopupInhibited () const { return this ->mInhibitReloadPopup ; }
216220
221+ [[nodiscard]] QString shellDir () const ;
217222 [[nodiscard]] QString configDir () const ;
223+ [[nodiscard]] QString shellRoot () const ;
218224
219225 [[nodiscard]] QString workingDirectory () const ;
220226 void setWorkingDirectory (QString workingDirectory);
0 commit comments