From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 76E5415ACFB for ; Thu, 20 Apr 2023 04:39:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 81A64E08E0; Thu, 20 Apr 2023 04:39:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5997CE08E0 for ; Thu, 20 Apr 2023 04:39:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CDF95341148 for ; Thu, 20 Apr 2023 04:39:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2FBD4A4D for ; Thu, 20 Apr 2023 04:39:05 +0000 (UTC) From: "Haelwenn Monnier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Haelwenn Monnier" Message-ID: <1681964785.2a3d6df251e5c4b0495f0812d41dd3a591c5892f.lanodan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: media-gfx/zw3d/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-gfx/zw3d/zw3d-2023.0.3.1.ebuild X-VCS-Directories: media-gfx/zw3d/ X-VCS-Committer: lanodan X-VCS-Committer-Name: Haelwenn Monnier X-VCS-Revision: 2a3d6df251e5c4b0495f0812d41dd3a591c5892f X-VCS-Branch: master Date: Thu, 20 Apr 2023 04:39:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 305c2df1-8d37-4a20-9a38-a813485f1220 X-Archives-Hash: 5123238b33e885f06b6a43c2697c0c4f commit: 2a3d6df251e5c4b0495f0812d41dd3a591c5892f Author: Huang Rui gmail com> AuthorDate: Thu Apr 20 04:26:25 2023 +0000 Commit: Haelwenn Monnier hacktivis me> CommitDate: Thu Apr 20 04:26:25 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2a3d6df2 media-gfx/zw3d: fix wayland crash issue Signed-off-by: Huang Rui gmail.com> media-gfx/zw3d/zw3d-2023.0.3.1.ebuild | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/media-gfx/zw3d/zw3d-2023.0.3.1.ebuild b/media-gfx/zw3d/zw3d-2023.0.3.1.ebuild index ff1cdd0c6..0c655df97 100644 --- a/media-gfx/zw3d/zw3d-2023.0.3.1.ebuild +++ b/media-gfx/zw3d/zw3d-2023.0.3.1.ebuild @@ -131,6 +131,20 @@ sh /opt/apps/${MY_PGK_NAME}/files/zw3drun.sh \$* ln -s /opt/apps/${MY_PGK_NAME}/zw3d "${S}"/usr/bin/zw3d || die + # Fix zw3d startup file +cat >> insert.txt <<- EOF || die +unset WAYLAND_DISPLAY +export XDG_SESSION_TYPE=x11 +export QT_QPA_PLATFORM=xcb +export QT_AUTO_SCREEN_SCALE_FACTOR=1 +export QT_STYLE_OVERRIDE=fusion +export IBUS_USE_PORTAL=1 + EOF + + sed -i \ + -e '/export LD_LIBRARY_PATH/r insert.txt' \ + "${S}"/opt/apps/${MY_PGK_NAME}/files/zw3drun.sh || die + # Use system libraries # rm -rf "${S}"/opt/apps/${MY_PGK_NAME}/files/lib3rd/libMagickCore* || die # rm -rf "${S}"/opt/apps/${MY_PGK_NAME}/files/lib3rd/libjpeg* || die