unbelievableflavour / snaptastic

A snap installer for Elementary OS
GNU General Public License v3.0
39 stars 4 forks source link

Fails to open #61

Closed peteruithoven closed 5 years ago

peteruithoven commented 5 years ago

I'm afraid the support for icons has introduced an issue for me. When I attempt to open Snaptastic from the applications menu or snapcraft.io it crashes right away. Calling it from the Terminal I see:

$ com.github.bartzaalberg.snaptastic

(process:6610): GLib-GIO-CRITICAL **: 11:43:42.011: g_app_info_set_as_default_for_type: assertion 'G_IS_APP_INFO (appinfo)' failed
[INFO 11:43:42.011821] Application.vala:155: Snaptastic version: 0.7.0
[INFO 11:43:42.011920] Application.vala:157: Kernel version: 4.15.0-43-generic
[ERROR 11:43:45.357892] IconHandler.vala:34: Failed to open file '/snap/gimp/current/gimp.png': No such file or directory
Trace/breakpoint trap

This file indeed doesn't exist:

$ ll /snap/gimp/current/
total 5
drwxr-xr-x  9 root root  167 jan 13 17:24 ./
drwxr-xr-x  5 root root 4096 jan 18 23:03 ../
drwxr-xr-x  2 root root   37 jan 13 17:22 bin/
-rwxr-xr-x  1 root root  411 jan 13 17:24 command-gimp.wrapper*
drwxr-xr-x 15 root root  268 jan 13 17:23 etc/
-rw-r--r--  1 root root   14 jan 13 17:10 flavor-select
drwxr-xr-x  3 root root   64 feb 24  2018 lib/
drwxr-xr-x  3 root root   43 jan 13 17:24 meta/
drwxr-xr-x  2 root root   58 jan 13 17:24 snap/
drwxr-xr-x  8 root root  128 jan 13 17:22 usr/
drwxr-xr-x  3 root root   26 feb 26  2018 var/

There are gimp.png's in the snap:

$ find /snap/gimp/current/ -name "gimp.png"
/snap/gimp/current/usr/share/icons/hicolor/16x16/apps/gimp.png
/snap/gimp/current/usr/share/icons/hicolor/22x22/apps/gimp.png
/snap/gimp/current/usr/share/icons/hicolor/24x24/apps/gimp.png
/snap/gimp/current/usr/share/icons/hicolor/256x256/apps/gimp.png
/snap/gimp/current/usr/share/icons/hicolor/32x32/apps/gimp.png
/snap/gimp/current/usr/share/icons/hicolor/48x48/apps/gimp.png

Please let me know if I can provide more information.

unbelievableflavour commented 5 years ago

Thnx for explaining the problem :) I will fix it immediatly.

unbelievableflavour commented 5 years ago

Fixed it. Should be available in next release.

peteruithoven commented 5 years ago

Whow you're quick! Thanks!

unbelievableflavour commented 5 years ago

Yea someone else already noted this in another issue so i was already looking for a solution. But he didn't give me any information so i didn't know where the problem was. But thnx ^^