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>
This commit is contained in:
Andreas Müller
2020-01-17 22:29:06 +01:00
committed by Richard Purdie
parent 27767c55df
commit 94c42e7fdd
2 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#!/bin/sh
#
# SPDX-License-Identifier: MIT
#
# Post-install intercept for mime-xdg.bbclass
update-desktop-database $D${desktop_dir}