commit:     99b8bcab13e4f5a451926ae628cd099a9db83c8a
Author:     Dex Conner <cantcuckthis <AT> danwin1210 <DOT> de>
AuthorDate: Mon Apr 11 07:17:37 2022 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Mon Apr 11 07:17:37 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=99b8bcab

app-misc/lf: Update mimeinfo cache

Signed-off-by: Dex Conner <cantcuckthis <AT> danwin1210.de>

 app-misc/lf/lf-27.ebuild | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/app-misc/lf/lf-27.ebuild b/app-misc/lf/lf-27.ebuild
index 70aa483cb..345900a6c 100644
--- a/app-misc/lf/lf-27.ebuild
+++ b/app-misc/lf/lf-27.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit go-module bash-completion-r1 desktop
+inherit go-module bash-completion-r1 desktop xdg-utils
 
 SRC_URI="https://github.com/gokcehan/lf/archive/r${PV}.tar.gz -> ${P}.tar.gz"
 SRC_URI+=" https://github.com/cantcuckthis/gentoo-lf/raw/main/${P}-deps.tar.xz";
@@ -56,3 +56,13 @@ src_install() {
 
        domenu "${PN}.desktop"
 }
+
+src_postinst() {
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+}
+
+src_postrm() {
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+}

Reply via email to