From f5df5184e29d5241b2429cd07924703f6ee41f63 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 27 Jan 2019 19:53:17 +0000 Subject: [PATCH] Make the bundled application look good on, e.g., Xfce (#346) --- tools/linuxdeployqt/shared.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/linuxdeployqt/shared.cpp b/tools/linuxdeployqt/shared.cpp index 1f120a5..358ef20 100644 --- a/tools/linuxdeployqt/shared.cpp +++ b/tools/linuxdeployqt/shared.cpp @@ -1218,6 +1218,15 @@ void deployPlugins(const AppDirInfo &appDirInfo, const QString &pluginSourcePath // Plugin white list: QStringList pluginList; + // Make the bundled application look good on, e.g., Xfce + // Note: http://code.qt.io/qt/qtstyleplugins.git must be compiled (using libgtk2.0-dev) + // https://askubuntu.com/a/910143 + // https://askubuntu.com/a/748186 + // This functionality used to come as part of Qt by default in earlier versions + // At runtime, export QT_QPA_PLATFORMTHEME=gtk2 (Xfce does this itself) + pluginList.append("platformthemes/libqgtk2.so"); + pluginList.append("styles/libqgtk2style.so"); + LogDebug() << "deploymentInfo.deployedLibraries before attempting to bundle required plugins:" << deploymentInfo.deployedLibraries; // Platform plugin: