meson: Use gnome.post_install
Requires meson 0.59. The command to update the desktop database was not executed which could lead to the app not appearing on the apps menu after install.
This commit is contained in:
parent
080ead9775
commit
146a76c0dd
2 changed files with 6 additions and 17 deletions
|
|
@ -1,15 +0,0 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
install_prefix = os.environ['MESON_INSTALL_PREFIX']
|
||||
icondir = os.path.join(install_prefix, 'share', 'icons', 'hicolor')
|
||||
schemadir = os.path.join(install_prefix, 'share', 'glib-2.0', 'schemas')
|
||||
|
||||
if not os.environ.get('DESTDIR'):
|
||||
print('Update icon cache...')
|
||||
subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])
|
||||
|
||||
print('Compiling gsettings schemas...')
|
||||
subprocess.call(['glib-compile-schemas', schemadir])
|
||||
Loading…
Add table
Add a link
Reference in a new issue