Add postinstall code to update the desktop file database

This commit is contained in:
David Boddie 2019-01-30 00:00:14 +01:00
parent adcb21af62
commit 0f1f175de1

View file

@ -11,3 +11,6 @@ destdir = environ.get('DESTDIR', '')
if not destdir:
print('Updating icon cache...')
call(['gtk-update-icon-cache', '-qtf', path.join(datadir, 'icons', 'hicolor')])
print('Updating desktop database...')
call(['update-desktop-database', '-q', path.join(datadir, 'applications')])