public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/chromium] epel9-next: update config file
@ 2026-08-07 16:04 Than Ngo
0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-08-07 16:04 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/chromium
Branch : epel9-next
Commit : 90d7c820b8eaabde5c4efcbf3ada7c83fc471711
Author : Than Ngo <than@redhat.com>
Date : 2023-02-06T18:28:56+01:00
Stats : +12/-9 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/chromium/c/90d7c820b8eaabde5c4efcbf3ada7c83fc471711?branch=epel9-next
Log:
update config file
---
diff --git a/chromium.conf b/chromium.conf
index ef74e36..72c565c 100644
--- a/chromium.conf
+++ b/chromium.conf
@@ -1,3 +1,5 @@
# system wide chromium flags
-# CHROMIUM_FLAGS="--ozone-platform=x11 --use-gl=egl"
+if [ "$XDG_SESSION_TYPE" == "wayland" ] || [[ $WAYLAND_DISPLAY ]] ; then
+ CHROMIUM_FLAGS="--use-gl=egl"
+fi
diff --git a/chromium.spec b/chromium.spec
index 5d8d8e7..3081d50 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -1441,14 +1441,19 @@ mkdir -p %{builddir} && cp -a %{_bindir}/gn %{builddir}/
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}%{_bindir}
-mkdir -p %{buildroot}%{chromium_path}/locales
+mkdir -p %{buildroot}%{_bindir} \
+ %{buildroot}%{chromium_path}/locales \
+ %{buildroot}%{_sysconfdir}/%{name}
-%if %{use_vaapi}
+# install system wide chromium config
+cp -a %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
cp -a %{SOURCE3} %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
-%else
+
+%if ! %{use_vaapi}
+# remove vaapi flags
grep -v features %{SOURCE3} > %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
chmod 755 %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
+echo "# system wide chromium flags" > %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
%endif
export BUILD_TARGET=`cat /etc/redhat-release`
@@ -1607,12 +1612,8 @@ mkdir -p %{buildroot}%{_datadir}/icons/hicolor/24x24/apps
cp -a chrome/app/theme/chromium/product_logo_24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/%{chromium_browser_channel}.png
# Install the master_preferences file
-mkdir -p %{buildroot}%{_sysconfdir}/%{name}
install -m 0644 %{SOURCE13} %{buildroot}%{_sysconfdir}/%{name}/
-# Install system wide chromium config
-install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/
-
mkdir -p %{buildroot}%{_datadir}/applications/
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE4}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-07 16:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 16:04 [rpms/chromium] epel9-next: update config file Than Ngo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox