From 2e89ed6cc1d66a8934753cace3ab6cdf0dd6b8e9 Mon Sep 17 00:00:00 2001 From: leigh123linux Date: Fri, 24 Feb 2017 10:43:00 +0000 Subject: [PATCH] RHEL 6 desktop-file-utils commands are more limited --- xorg-x11-drv-nvidia.spec | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec index 81b9598..d0054c8 100644 --- a/xorg-x11-drv-nvidia.spec +++ b/xorg-x11-drv-nvidia.spec @@ -330,13 +330,11 @@ touch -r %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xorg.conf.d/99-nvidia.conf # Comment Xorg abi override #install -pm 0644 %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xorg.conf.d -# Desktop entry for nvidia-settings +# Fix desktop file and validate +sed -i -e 's|__UTILS_PATH__/||g' -e 's|__PIXMAP_PATH__/||g' nvidia-settings.desktop +sed -i -e 's|nvidia-settings.png|nvidia-settings|g' nvidia-settings.desktop desktop-file-install --vendor "" \ --dir $RPM_BUILD_ROOT%{_datadir}/applications/ \ -%if 0%{?rhel} > 6 || 0%{?fedora} >= 15 - --set-icon=nvidia-settings \ - --set-key=Exec --set-value=nvidia-settings \ -%endif nvidia-settings.desktop %if 0%{?rhel} < 8 || 0%{?fedora} <= 24