summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmail.com>2020-01-17 22:29:06 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-19 13:24:38 +0000
commit94c42e7fdd69ed39d475156a776f6f80d4165932 (patch)
tree62c00a8279499bff6b4b102156cab91f28478986 /scripts
parent27767c55df1c0686c42303aecec9c4720d2bb9bc (diff)
downloadpoky-94c42e7fdd69ed39d475156a776f6f80d4165932.tar.gz
mime-xdg.bbclass: initial add
When opening files by file-browsers on fresh images, user has to choose the application to open from the pool af ALL known applications even those not designed to open the file selected. By inheriting this classs in recipes the assosiations in /usr/share/applications/mimeinfo.cache are build by calling update-desktop-database. (From OE-Core rev: 20208d6763e725cea211f933ec1c8e32733a10af) Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/postinst-intercepts/update_desktop_database8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/postinst-intercepts/update_desktop_database b/scripts/postinst-intercepts/update_desktop_database
new file mode 100644
index 0000000000..8903b496f3
--- /dev/null
+++ b/scripts/postinst-intercepts/update_desktop_database
@@ -0,0 +1,8 @@
1#!/bin/sh
2#
3# SPDX-License-Identifier: MIT
4#
5# Post-install intercept for mime-xdg.bbclass
6
7update-desktop-database $D${desktop_dir}
8