set metacity with LIBGL_KOPPER_DISABLE as yes

This commit is contained in:
sun_hai_10 2024-11-23 16:23:44 +08:00
parent 787fa0d076
commit 7c4c19d11a
2 changed files with 33 additions and 1 deletions

View File

@ -1,7 +1,7 @@
%define _empty_manifest_terminate_build 0
Name: anaconda
Version: 36.16.5
Release: 41
Release: 42
Summary: Graphical system installer
License: GPLv2+ and MIT
URL: http://fedoraproject.org/wiki/Anaconda
@ -69,6 +69,8 @@ Patch10001: 0001-check-that-the-password-contains-the-username.patch
Patch9027: disable-disk-encryption.patch
%endif
Patch9028: bugfix-set-metacity-with-LIBGL_KOPPER_DISABLE-as-yes.patch
%define dasbusver 1.3
%define dbusver 1.2.3
%define dnfver 3.6.0
@ -324,6 +326,12 @@ update-desktop-database &> /dev/null || :
%{_prefix}/libexec/anaconda/dd_*
%changelog
* Sat Nov 23 2024 sunhai <sunhai10@huawei.com> - 36.16.5-42
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: set metacity with LIBGL_KOPPER_DISABLE as yes
* Fri Sep 20 2024 jchzhou <zhoujiacheng@iscas.ac.cn> - 36.16.5-41
- Type:bugfix
- ID:NA

View File

@ -0,0 +1,24 @@
From cfe105b748c5e4a7655ebd71555d23e769470161 Mon Sep 17 00:00:00 2001
From: sunhai <sunhai10@huawei.com>
Date: Sat, 23 Nov 2024 16:06:08 +0800
Subject: [PATCH] set metacity with LIBGL_KOPPER_DISABLE as yes
---
pyanaconda/display.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/pyanaconda/display.py b/pyanaconda/display.py
index ed163e7..8de49a4 100644
--- a/pyanaconda/display.py
+++ b/pyanaconda/display.py
@@ -197,6 +197,7 @@ def do_startup_x11_actions():
# to set GUI subprocess SIGINT handler
signal.signal(signal.SIGINT, signal.SIG_IGN)
+ os.environ["LIBGL_KOPPER_DISABLE"] = "yes"
childproc = util.startProgram(["metacity", "--display", ":1", "--sm-disable"],
env_add={'XDG_DATA_DIRS': xdg_data_dirs},
preexec_fn=x11_preexec)
--
2.33.0