diff options
author | Michele Calgaro <[email protected]> | 2020-01-28 23:12:32 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-01-30 11:36:35 +0900 |
commit | ea1da131d3eda406c2775a9b538a3e3cbd581007 (patch) | |
tree | 4d821eeb81f7353aea1b8b807dd1246687b80cb3 /tdecore/tdeconfigbase.cpp | |
parent | 352be1b977a470e6d666275df3cd0f0e2ffd1185 (diff) | |
download | tdelibs-ea1da131d3eda406c2775a9b538a3e3cbd581007.tar.gz tdelibs-ea1da131d3eda406c2775a9b538a3e3cbd581007.zip |
Improved support for XDG folders without requiring xdg-user-dirs to be installed.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 394c9f5c0e1b464aa8bc22bd65c5268acd43994d)
Diffstat (limited to 'tdecore/tdeconfigbase.cpp')
-rw-r--r-- | tdecore/tdeconfigbase.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tdecore/tdeconfigbase.cpp b/tdecore/tdeconfigbase.cpp index 80baf3a0e..fc3728417 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(); } |