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 --- README.md | 2 ++ myautomount.spec | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b744b14..013c845 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ Use environment variable `MYA_PREFIX` for testing. ## Improvements * Add notifications, perhaps with [xnotify](https://github.com/phillbush/xnotify)? +* Implement the feature to hide sdb and sdc, etc., because one does not normally place filesystems on the raw drive. +* Add dpkg recipe # References [1]: https://github.com/project-trident/trident-utilities/blame/master/src-go/automount/main.go 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