diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-07 19:10:38 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-07 19:10:38 -0600 |
commit | 99cc03399059853dd8699cae5752e8122cb715f1 (patch) | |
tree | 825da375ac05fc555e25b2e350504e211d85d2fb /tdecore/kstandarddirs.cpp | |
parent | d5b3ae721dc072e0c70055313de9b5228b6688a8 (diff) | |
download | tdelibs-99cc03399059853dd8699cae5752e8122cb715f1.tar.gz tdelibs-99cc03399059853dd8699cae5752e8122cb715f1.zip |
Rename KDEHOME and KDEDIR
Diffstat (limited to 'tdecore/kstandarddirs.cpp')
-rw-r--r-- | tdecore/kstandarddirs.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tdecore/kstandarddirs.cpp b/tdecore/kstandarddirs.cpp index 87a509e13..a0b25dcbb 100644 --- a/tdecore/kstandarddirs.cpp +++ b/tdecore/kstandarddirs.cpp @@ -167,7 +167,7 @@ static void priorityAdd(TQStringList &prefixes, const TQString& dir, bool priori { if (priority && !prefixes.isEmpty()) { - // Add in front but behind $KDEHOME + // Add in front but behind $TDEHOME TQStringList::iterator it = prefixes.begin(); it++; prefixes.insert(it, 1, dir); @@ -1253,13 +1253,13 @@ TQString KStandardDirs::kfsstnd_defaultprefix() if (!s->defaultprefix.isEmpty()) return s->defaultprefix; #ifdef Q_WS_WIN - s->defaultprefix = readEnvPath("KDEDIR"); + s->defaultprefix = readEnvPath("TDEDIR"); if (s->defaultprefix.isEmpty()) { s->defaultprefix = TQFile::decodeName("c:\\kde"); //TODO: find other location (the Registry?) } #else //UNIX - s->defaultprefix = KDEDIR; + s->defaultprefix = TDEDIR; #endif if (s->defaultprefix.isEmpty()) kdWarning() << "KStandardDirs::kfsstnd_defaultprefix(): default KDE prefix not found!" << endl; @@ -1287,15 +1287,15 @@ void KStandardDirs::addKDEDefaults() { TQStringList kdedirList; - // begin KDEDIRS - TQString kdedirs = readEnvPath("KDEDIRS"); + // begin TDEDIRS + TQString kdedirs = readEnvPath("TDEDIRS"); if (!kdedirs.isEmpty()) { tokenize(kdedirList, kdedirs, TQChar(KPATH_SEPARATOR)); } else { - TQString kdedir = readEnvPath("KDEDIR"); + TQString kdedir = readEnvPath("TDEDIR"); if (!kdedir.isEmpty()) { kdedir = KShell::tildeExpand(kdedir); @@ -1303,8 +1303,8 @@ void KStandardDirs::addKDEDefaults() } } -#ifndef Q_OS_WIN //no default KDEDIR on win32 defined - kdedirList.append(KDEDIR); +#ifndef Q_OS_WIN //no default TDEDIR on win32 defined + kdedirList.append(TDEDIR); #endif #ifdef __KDE_EXECPREFIX @@ -1324,10 +1324,10 @@ void KStandardDirs::addKDEDefaults() if (getuid() == 0) { localKdeDir = readEnvPath("KDEROOTHOME"); if (localKdeDir.isEmpty() == true) - localKdeDir = readEnvPath("KDEHOME"); + localKdeDir = readEnvPath("TDEHOME"); } else { - localKdeDir = readEnvPath("KDEHOME"); + localKdeDir = readEnvPath("TDEHOME"); } if (!localKdeDir.isEmpty()) { @@ -1352,7 +1352,7 @@ void KStandardDirs::addKDEDefaults() TQString dir = KShell::tildeExpand(*it); addPrefix(dir); } - // end KDEDIRS + // end TDEDIRS // begin XDG_CONFIG_XXX TQStringList xdgdirList; |