From 482a3b23021aacac1b15d55fd33673b868917be7 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:46:38 +0100 Subject: [PATCH] CLUTTER_BACKEND workaround to fix Gnome >= 3.16 apps [release 304.125-2mamba;Thu May 28 2015] --- nvidia_304.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/nvidia_304.spec b/nvidia_304.spec index 248636e..2887a48 100644 --- a/nvidia_304.spec +++ b/nvidia_304.spec @@ -3,7 +3,7 @@ Name: nvidia_304 Version: 304.125 Epoch: 1 -Release: 1mamba +Release: 2mamba Summary: NVIDIA proprietary accelerated drivers for the Linux Kernel Group: System/Kernel and Hardware Vendor: openmamba @@ -222,6 +222,13 @@ install -D -m755 libOpenCL.so.1.0.0 \ ln -s libvdpau_nvidia.so.%{nvidia_current_libver} \ %{buildroot}%{_libdir}/vdpau/libvdpau_nvidia.so +# Clutter workaround (http://blog.sukimashita.com/2015/04/13/gnome-3-16-and-nvidia-binary-driver-crash-with-totem-gnome-maps-cheese-and-others/) +mkdir -p %{buildroot}%{_sysconfdir}/profile.d/ +cat > %{buildroot}%{_sysconfdir}/profile.d/nvidia-clutter.sh << _EOF +export CLUTTER_BACKEND=x11 +_EOF +chmod +x %{buildroot}%{_sysconfdir}/profile.d/nvidia-clutter.sh + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -346,6 +353,7 @@ exit 0 %files -n xorg-drv-video-%{name} %defattr(-,root,root) +%{_sysconfdir}/profile.d/nvidia-clutter.sh %dir %{_prefix}/src/%{name}-%{version} %{_prefix}/src/%{name}-%{version}/* %attr(0755,root,root) %{_sbindir}/update-alternatives-set-nvidia @@ -385,6 +393,9 @@ exit 0 %doc current/{LICENSE,NVIDIA_Changelog,README.txt} current/html %changelog +* Thu May 28 2015 Silvan Calarco 304.125-2mamba +- CLUTTER_BACKEND workaround to fix Gnome >= 3.16 apps + * Thu Mar 05 2015 Silvan Calarco 304.125-1mamba - update to 304.125 - don't call nvidia-autoselect-driver