From 6803ba55cdf4e1cf37275ead7247ee5d27f011d4 Mon Sep 17 00:00:00 2001 From: B Stack Date: Tue, 29 Sep 2020 22:56:16 -0400 Subject: add notes to readme --- myautomount.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'myautomount.spec') diff --git a/myautomount.spec b/myautomount.spec index cc821f0..97d9f89 100644 --- a/myautomount.spec +++ b/myautomount.spec @@ -17,7 +17,7 @@ %global use_commit 1 %define date %(/usr/bin/date +%%Y%%m%%d) %if 0%{?use_commit} -%global git_commit fc6313650f03b2c1bb097d7619478aa1fac6a39c +%global git_commit 0d5f8b7657527eab8380f5aa81ecd072714cf13c %{?git_commit:%global git_commit_hash %(c=%{git_commit}; echo ${c:0:7})} %else %global git_commit 0.0.1 @@ -75,10 +75,17 @@ exit 0 rm -rf %{buildroot} %preun -exit 0 %postun +%if 0%{?fedora} || 0%{?rhel} >= 7 +%posttrans +update-desktop-database 1>/dev/null 2>&1 || : +%else +%post +update-desktop-database 1>/dev/null 2>&1 || : +%endif + %files %config %attr(0644, -, -) %{_sysconfdir}/%{name}.conf %{_sysconfdir}/xdg/autostart -- cgit