Skip to content

Commit 7253d96

Browse files
authored
Merge pull request #7 from ryonakano/update-icon-cache
Update the icon cache in the postinst script
2 parents 7754376 + 5336d4c commit 7253d96

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

meson/post_install.py

100644100755
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
import subprocess
55

66
schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas')
7+
iconcachedir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'icons', 'hicolor')
78

89
if not os.environ.get('DESTDIR'):
9-
print('Compiling gsettings schemas...')
10+
print('Compiling gsettings schemas')
1011
subprocess.call(['glib-compile-schemas', schemadir])
12+
13+
print('Updating desktop icon cache…')
14+
subprocess.call(['gtk-update-icon-cache', '-qtf', iconcachedir])

0 commit comments

Comments
 (0)