summaryrefslogtreecommitdiffstats
path: root/tdecore/tdeconfigbase.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-28 23:12:32 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-28 23:12:32 +0900
commit394c9f5c0e1b464aa8bc22bd65c5268acd43994d (patch)
tree39db9b6670e6ffce93a53f790593e15c0394997d /tdecore/tdeconfigbase.cpp
parentecd1e4bd401a00be11f4d8bbaff01718f29f9118 (diff)
downloadtdelibs-394c9f5c0e1b464aa8bc22bd65c5268acd43994d.tar.gz
tdelibs-394c9f5c0e1b464aa8bc22bd65c5268acd43994d.zip
Improved support for XDG folders without requiring xdg-user-dirs to be installed.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdecore/tdeconfigbase.cpp')
-rw-r--r--tdecore/tdeconfigbase.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tdecore/tdeconfigbase.cpp b/tdecore/tdeconfigbase.cpp
index c86b189bd..9bca7145d 100644
--- a/tdecore/tdeconfigbase.cpp
+++ b/tdecore/tdeconfigbase.cpp
@@ -321,6 +321,12 @@ TQString TDEConfigBase::readEntry( const char *pKey,
else if (aVarName == "XDG_PICTURES_DIR") {
result = TDEGlobalSettings::picturesPath();
}
+ else if (aVarName == "XDG_PUBLICSHARE_DIR") {
+ result = TDEGlobalSettings::publicSharePath();
+ }
+ else if (aVarName == "XDG_TEMPLATES_DIR") {
+ result = TDEGlobalSettings::templatesPath();
+ }
else if (aVarName == "XDG_VIDEOS_DIR") {
result = TDEGlobalSettings::videosPath();
}