diff --git a/grid.js b/grid.js index 075a21f..83156cb 100644 --- a/grid.js +++ b/grid.js @@ -253,7 +253,13 @@ app.connect("activate", () => { fillPages() appInfoMonitor = Gio.AppInfoMonitor.get() - appInfoMonitor.connect("changed", fillPages) + appInfoMonitor.connect("changed", () => { + // GTK never rescans icon directories by itself, so new apps' icons wouldn't be found. + // Setting the search path, even to the same one, makes it reload. + const iconTheme = Gtk.IconTheme.get_for_display(win.get_display()) + iconTheme.set_search_path(iconTheme.get_search_path()) + fillPages() + }) const box = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL }) box.append(carousel)