Skip to content

Commit

Permalink
LXQtPanelApplication: only consider plugins with valid names
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgit committed Aug 20, 2024
1 parent dc336df commit 30cf17a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion panel/lxqtpanelapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 30cf17a

Please sign in to comment.