Commit cf572c3b authored by Fabian Vogt's avatar Fabian Vogt

Remove application directory from QCoreApplication::libraryPaths()

The directory containing the main application (read through argv[0]) is
by default added to the list of paths containing libraries.
This causes various methods to iterate through all entries of the plasmashell
install location, usually /usr/bin.
By explicitly removing the path, those unnecessary lookups can be avoided,
resulting in around 100ms quicker startup on a system with 4000 entries in

Test Plan:
Ran plasmashell with and without this fix, no changes except for a slightly
quicker startup and much less strace noise.

Reviewers: #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 294ad092
......@@ -60,6 +60,10 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
// The executable's path is added to the library/plugin paths.
// This does not make much sense for plasmashell.
KAboutData aboutData(QStringLiteral("plasmashell"),
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