commit 1adbe971d2d6e5aa05bf188804edcbd69bdff9dc
Author: Uwe Klotz <uwe.klotz(a)gmail.com>
Date: Tue Nov 21 22:58:33 2023 +0100
Patch .desktop file to use XWayland instead of Wayland
desktop-file-qpa-platform-xcb.patch | 15 +++++++++++++++
mixxx.spec | 1 +
2 files changed, 16 insertions(+)
---
diff --git a/desktop-file-qpa-platform-xcb.patch b/desktop-file-qpa-platform-xcb.patch
new file mode 100644
index 0000000..05955a5
--- /dev/null
+++ b/desktop-file-qpa-platform-xcb.patch
@@ -0,0 +1,15 @@
+--- a/res/linux/org.mixxx.Mixxx.desktop
++++ b/res/linux/org.mixxx.Mixxx.desktop
+@@ -8,7 +8,9 @@ GenericName[fr]=Interface numérique pour DJ
+ Comment=A digital DJ interface
+ Comment[de]=Ein digitales DJ-System
+ Comment[fr]=Une interface numérique pour DJ
+-Exec=sh -c "pasuspender -- mixxx || mixxx"
++# Use XWayland platform plugin (xcb) due to issues with Qt5 on Wayland.
++# See also: <
https://github.com/mixxxdj/mixxx/issues/12332>
++Exec=env QT_QPA_PLATFORM=xcb sh -c "pasuspender -- mixxx || mixxx"
+ Terminal=false
+ Icon=mixxx
+ Type=Application
+--
+2.42.0
diff --git a/mixxx.spec b/mixxx.spec
index 1ff831e..d3e0865 100644
--- a/mixxx.spec
+++ b/mixxx.spec
@@ -37,6 +37,7 @@ Source0:
https://github.com/mixxxdj/%{name}/archive/%{sources}/%{name}-%{
# as a fragment identifier to the URL to populate SOURCE<n> correctly
Source1:
https://github.com/mixxxdj/libkeyfinder/archive/refs/tags/v%{libkeyfinder...
Source2:
https://github.com/xsco/libdjinterop/archive/refs/tags/%{libdjinterop_ver...
+Patch0: desktop-file-qpa-platform-xcb.patch
# Build Tools
BuildRequires: desktop-file-utils