diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-06-23 13:40:41 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-06-23 15:48:32 -0400 |
commit | d3d95d39beebb42894dbcf7cad58ef1fba4bbe2f (patch) | |
tree | bdedf0bb69b60fba5791936b4ac801224e3e95f3 /docs | |
parent | 39c6571a46e5d432f96d4a20946f7d4e5f72f9fd (diff) | |
download | meson-d3d95d39beebb42894dbcf7cad58ef1fba4bbe2f.zip meson-d3d95d39beebb42894dbcf7cad58ef1fba4bbe2f.tar.gz meson-d3d95d39beebb42894dbcf7cad58ef1fba4bbe2f.tar.bz2 |
gnome: add update_desktop_database to post_install()
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/Gnome-module.md | 2 | ||||
-rw-r--r-- | docs/markdown/snippets/gnome.md | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/markdown/Gnome-module.md b/docs/markdown/Gnome-module.md index 4088061..2b90e0c 100644 --- a/docs/markdown/Gnome-module.md +++ b/docs/markdown/Gnome-module.md @@ -374,3 +374,5 @@ It takes the following keyword arguments: `giomodule.cache` file will be updated. - `gtk_update_icon_cache`: If set to `true`, update `icon-theme.cache` file in `<prefix>/<datadir>/icons/hicolor`. +- `update_desktop_database`: *Since 0.59.0* If set to `true`, update cache of + MIME types handled by desktop files in `<prefix>/<datadir>/applications`. diff --git a/docs/markdown/snippets/gnome.md b/docs/markdown/snippets/gnome.md index 1944376..d185da2 100644 --- a/docs/markdown/snippets/gnome.md +++ b/docs/markdown/snippets/gnome.md @@ -3,3 +3,11 @@ When using `gnome.compile_schemas()` the location of the compiled schema is added to `GSETTINGS_SCHEMA_DIR` environment variable when using [`meson devenv`](Commands.md#devenv) command. + +## `update_desktop_database` added to `gnome.post_install()` + +Applications that install a `.desktop` file containing a `MimeType` need to update +the cache upon installation. Most applications do that using a custom script, +but it can now be done by Meson directly. + +See [`gnome.post_install()`](Gnome-module.md#gnomepost_install). |