Skip to content

Commit

Permalink
fix: use the deepin platform theme plugin if the DESKTOP_SESSION is e…
Browse files Browse the repository at this point in the history
…mpty
  • Loading branch information
zccrs committed Jan 6, 2020
1 parent 04f2919 commit 4abe1bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platformplugin/dplatformintegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,10 @@ QPaintEngine *DPlatformIntegration::createImagePaintEngine(QPaintDevice *paintDe
QStringList DPlatformIntegration::themeNames() const
{
QStringList list = DPlatformIntegrationParent::themeNames();
const QByteArray desktop_session = qgetenv("DESKTOP_SESSION");

if (qgetenv("DESKTOP_SESSION") == "deepin")
// 在lightdm环境中,无此环境变量
if (desktop_session.isEmpty() || desktop_session == "deepin")
list.prepend("deepin");

return list;
Expand Down

0 comments on commit 4abe1bd

Please sign in to comment.