summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJekyll Wu <adaptee@gmail.com>2012-02-25 19:29:50 (GMT)
committerJekyll Wu <adaptee@gmail.com>2012-02-25 20:14:27 (GMT)
commit5a936adb2005c4da88b457f4b6625dc427a878e3 (patch)
treecffd3fa9b5a3dc7288cc482a8478eb18db1c3f1c
parentb400690c5d4a639d35f7b219f94a277d19be79b3 (diff)
Disable the advanced feature of "CommonDirNames" for "%d" by default
The main consideration is it is more often confusing than helpful for average users, especially when this feature was hidden, undocumented and enabled by default. The "CommonDirNames" list in the code is now empty by default , instead of a list of hardcoded common names. To enable and customize this advanced and potentally confusing feature, edit $KDEHOME/usr/share/config/konsolerc and add the following lines: [ProcessInfo] CommonDirNames=name1,name2,name3... For konsolepart users, edit the config file of the hosting application. I'll add related information for this hidden & advanced feature into handbook later. BUG:190281 FIXED-IN:4.9.0 REVIEW: 103949 CCMAIL: robertknight@gmail.com
-rw-r--r--src/ProcessInfo.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/ProcessInfo.cpp b/src/ProcessInfo.cpp
index 17f8220..871d54a 100644
--- a/src/ProcessInfo.cpp
+++ b/src/ProcessInfo.cpp
@@ -149,15 +149,7 @@ QSet<QString> ProcessInfo::commonDirNames()
KSharedConfigPtr config = KGlobal::config();
KConfigGroup configGroup = config->group("ProcessInfo");
- QStringList defaults = QStringList()
- << "src" << "build" << "debug" << "release"
- << "bin" << "lib" << "libs" << "tmp"
- << "doc" << "docs" << "data" << "share"
- << "examples" << "icons" << "pics" << "plugins"
- << "tests" << "media" << "l10n" << "include"
- << "includes" << "locale" << "ui";
-
- _commonDirNames = QSet<QString>::fromList(configGroup.readEntry("CommonDirNames", defaults));
+ _commonDirNames = QSet<QString>::fromList(configGroup.readEntry("CommonDirNames", QStringList()));
}