Commit 5a936adb authored by Jekyll Wu's avatar Jekyll Wu

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
parent b400690c
......@@ -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()));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment