Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
X11:Deepin:Factory
deepin-session
fix-dtk6-theme.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-dtk6-theme.patch of Package deepin-session
diff -Nur dde-session-1.2.10/src/dde-session/environmentsmanager.cpp dde-session-1.2.10-new/src/dde-session/environmentsmanager.cpp --- dde-session-1.2.10/src/dde-session/environmentsmanager.cpp 2024-05-16 17:21:37.000000000 +0800 +++ dde-session-1.2.10-new/src/dde-session/environmentsmanager.cpp 2024-07-20 20:51:47.125907148 +0800 @@ -85,6 +85,15 @@ m_envMap.insert("GNOME_DESKTOP_SESSION_ID", "this-is-deprecated"); m_envMap.insert("XDG_CURRENT_DESKTOP", "DDE"); m_envMap.insert("QT_DBL_CLICK_DIST", QString::number(15 * scaleFactor)); + + QByteArray sessionType = qgetenv("XDG_SESSION_TYPE"); + if (sessionType == "x11") { + m_envMap.insert("QT_QPA_PLATFORM", "dxcb:xcb"); + } else if (sessionType == "wayland") { + m_envMap.insert("QT_QPA_PLATFORM", "wayland"); + m_envMap.insert("QT_WAYLAND_SHELL_INTEGRATION", "xdg-shell;wl-shell;ivi-shell;qt-shell;"); + } + } void EnvironmentsManager::createKeyringEnvironments()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor