From 30cf17aa5f692ebb8754c8076628f382eeeff4fc Mon Sep 17 00:00:00 2001 From: Filippo Gentile Date: Tue, 20 Aug 2024 13:38:38 +0200 Subject: [PATCH] LXQtPanelApplication: only consider plugins with valid names --- panel/lxqtpanelapplication.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/panel/lxqtpanelapplication.cpp b/panel/lxqtpanelapplication.cpp index c88e8c9c2..5b4a0d6c1 100644 --- a/panel/lxqtpanelapplication.cpp +++ b/panel/lxqtpanelapplication.cpp @@ -104,8 +104,13 @@ QString findBestBackend() for(const QString& dir : std::as_const(dirs)) { QDir backendsDir(dir); - backendsDir.cd(QLatin1String("backend")); + if ( QFile::exists( dir + QStringLiteral("/backend") ) ) + { + backendsDir.cd(QLatin1String("backend")); + } + + backendsDir.setNameFilters({QLatin1String("libwmbackend_*.so")}); const auto entryList = backendsDir.entryList(QDir::Files); for(const QString& fileName : entryList) {