AppImage's are now processed better

AppImage's desktop files are now extracted so name, category, and icon can be obtained
Made all icons be scaled so you don't get icons that are too big or small
This commit is contained in:
Belac Darkstorm
2018-06-16 03:08:31 -05:00
parent ec4d66f6b2
commit 3d9583281e
2 changed files with 79 additions and 17 deletions
+2 -1
View File
@@ -25,7 +25,8 @@ type app struct {
func (a *app) getTreeIter(store *gtk.TreeStore) *gtk.TreeIter {
it := store.Append(nil)
store.SetValue(it, 0, a.icon)
scaled,_ := a.icon.ScaleSimple(32,32,gdk.INTERP_HYPER)
store.SetValue(it, 0, scaled)
if portableHide {
store.SetValue(it, 1, strings.TrimSuffix(a.name, "Portable"))
} else {