public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Rui Huang" <vowstar@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-gfx/zw3d/
Date: Thu, 20 Apr 2023 04:26:49 +0000 (UTC)	[thread overview]
Message-ID: <1681964785.2a3d6df251e5c4b0495f0812d41dd3a591c5892f.vowstar@gentoo> (raw)

commit:     2a3d6df251e5c4b0495f0812d41dd3a591c5892f
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Thu Apr 20 04:26:25 2023 +0000
Commit:     Rui Huang <vowstar <AT> gmail <DOT> com>
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 <vowstar <AT> 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


             reply	other threads:[~2023-04-20  4:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-20  4:26 Rui Huang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-01 20:17 [gentoo-commits] repo/proj/guru:dev commit in: media-gfx/zw3d/ Rui Huang
2025-02-01 19:06 Rui Huang
2024-10-30  3:38 Rui Huang
2024-10-30  3:38 Rui Huang
2023-04-03 12:47 Rui Huang
2023-04-03 12:47 Rui Huang
2022-12-21 11:17 Rui Huang
2022-12-21  4:29 Rui Huang
2022-12-16 15:20 Rui Huang
2022-12-16 11:50 Rui Huang
2022-06-27  3:45 Rui Huang
2022-05-31  9:48 Rui Huang
2022-05-31  9:33 Rui Huang
2022-04-21  3:34 Rui Huang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1681964785.2a3d6df251e5c4b0495f0812d41dd3a591c5892f.vowstar@gentoo \
    --to=vowstar@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox