From e96ad04555fd25486c110874dd962cd9cacb5e57 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:46:49 +0100 Subject: [PATCH] CLUTTER_BACKEND workaround to fix Gnome >= 3.16 apps [release 340.76-2mamba;Thu May 28 2015] --- nvidia_340.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/nvidia_340.spec b/nvidia_340.spec index 6b0b398..a4a61ce 100644 --- a/nvidia_340.spec +++ b/nvidia_340.spec @@ -3,7 +3,7 @@ Name: nvidia_340 Version: 340.76 Epoch: 1 -Release: 1mamba +Release: 2mamba Summary: NVIDIA proprietary accelerated drivers for the Linux Kernel Group: System/Kernel and Hardware Vendor: openmamba @@ -242,6 +242,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}" @@ -366,6 +373,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 @@ -410,6 +418,9 @@ exit 0 %doc current/{LICENSE,NVIDIA_Changelog,README.txt} current/html %changelog +* Thu May 28 2015 Silvan Calarco 340.76-2mamba +- CLUTTER_BACKEND workaround to fix Gnome >= 3.16 apps + * Thu Mar 05 2015 Silvan Calarco 340.76-1mamba - update to 340.76 - don't call nvidia-autoselect-driver