@@ -118,6 +118,11 @@ class ctkAppLauncherSettingsPrivate;
118
118
// / appLauncherSettings.readSettings("/path/to/AwesomeAppLauncherSetting.ini");
119
119
// /
120
120
// / // Get values (read from both the main settings file and the additional one).
121
+ // / qDebug() << appLauncherSettings.pathsEnvVars().value("PATH");
122
+ // / qDebug() << appLauncherSettings.pathsEnvVars().value("LD_LIBRARY_PATH");
123
+ // / qDebug() << appLauncherSettings.pathsEnvVars().value("PYTHONPATH");
124
+ // / qDebug() << appLauncherSettings.envVars().value("FOO");
125
+ // / // or
121
126
// / qDebug() << appLauncherSettings.paths();
122
127
// / qDebug() << appLauncherSettings.libraryPaths();
123
128
// / qDebug() << appLauncherSettings.additionalPathsVars().value("PYTHONPATH");
@@ -165,6 +170,32 @@ class ctkAppLauncherSettings : public QObject
165
170
// / \sa envVar(const QString& variableName, bool expand)
166
171
QHash<QString, QString> envVars (bool expand = true ) const ;
167
172
173
+ // / \brief Get dictionnary of all list of paths.
174
+ // /
175
+ // / These include list of paths associated with:
176
+ // /
177
+ // / * \c General/additionalPathVariables group (see additionalPathsVars()).
178
+ // /
179
+ // / * \c LibraryPaths group (see libraryPaths()).
180
+ // /
181
+ // / * \c Paths group (see paths()).
182
+ // /
183
+ // / Depending on the platform, list associated with the \c LibraryPaths and \c Paths
184
+ // / groups are mapped with different environment variable names:
185
+ // /
186
+ // / Variable name | Linux | MacOSX | Windows
187
+ // / ----------------------|-----------------|-----------------|--------------------------|
188
+ // / `LD_LIBRARY_PATH` | libraryPaths() | NA | NA |
189
+ // / `DYLD_LIBRARY_PATH` | NA | libraryPaths() | NA |
190
+ // / `PATH` | paths() | paths() | paths() + libraryPaths() |
191
+ // /
192
+ // / \sa additionalPathsVars(bool expand)
193
+ // / \sa libraryPaths(bool expand)
194
+ // / \sa paths(bool expand)
195
+ // / \sa libraryPathVariableName()
196
+ // /
197
+ QHash<QString, QStringList> pathsEnvVars (bool expand = true ) const ;
198
+
168
199
// / \brief Get paths associated with \a variableName.
169
200
// /
170
201
// / The returned list corresponds to the path list identified by one of
0 commit comments