commit 9380f1efcc26ae68e5362344597702f7f697c089
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Fri Feb 24 10:43:00 2017 +0000
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