Re: [PATCH v3] build: update the desktop database after installing the desktop file

2016-11-28 Thread David Bremner
Jani Nikula  writes:

> This makes the option to choose Notmuch as mailto: handler show up in
> the desktop environment settings. Ignore errors.

pushed to master.

d
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


[PATCH v3] build: update the desktop database after installing the desktop file

2016-11-26 Thread Jani Nikula
This makes the option to choose Notmuch as mailto: handler show up in
the desktop environment settings. Ignore errors.

---

v3: ignore errors on update-desktop-database. I don't want to skip
desktop-file-install if update-desktop-database is not available, and
if update fails, it's likely a transient error anyway.
---
 emacs/Makefile.local | 1 +
 1 file changed, 1 insertion(+)

diff --git a/emacs/Makefile.local b/emacs/Makefile.local
index ffa8421ebd45..5fff019da73d 100644
--- a/emacs/Makefile.local
+++ b/emacs/Makefile.local
@@ -99,6 +99,7 @@ endif
 ifeq ($(WITH_DESKTOP),1)
mkdir -p "$(DESTDIR)$(desktop_dir)"
desktop-file-install --mode 0644 --dir "$(DESTDIR)$(desktop_dir)" 
$(emacs_mua_desktop)
+   -update-desktop-database "$(DESTDIR)$(desktop_dir)"
 endif
 
 CLEAN := $(CLEAN) $(emacs_bytecode) $(dir)/notmuch-version.el 
$(dir)/notmuch-pkg.el
-- 
2.1.4

___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch