Skip to content

Commit

Permalink
1.1.5 - Recache mimetype handler caches/icon cache for Quilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Lains committed Jul 1, 2017
1 parent 074fb23 commit 1c3d408
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions meson/post_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
import subprocess

schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas')
icondir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'icons', 'hicolor')

if not os.environ.get('DESTDIR'):
print('Compiling gsettings schemas...')
subprocess.call(['glib-compile-schemas', schemadir], shell=False)
print('Compiling gsettings schemas...')
subprocess.call(['glib-compile-schemas', schemadir], shell=False)

print('Recaching mimetype handlers...')
subprocess.call(['update-desktop-database'], shell=False)

print('Rebuilding desktop icons cache...')
subprocess.call(['update-icon-caches', icondir], shell=False)
2 changes: 1 addition & 1 deletion src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ namespace Quilter {
}

private static void register_default_handler () {
var app_info = new DesktopAppInfo ("com.github.lainsce.quilter");
var app_info = new DesktopAppInfo ("com.github.lainsce.quilter.desktop");
if (app_info == null) {
warning ("AppInfo object not found for Quilter.");
return;
Expand Down

0 comments on commit 1c3d408

Please sign in to comment.