Adding "icon" filed in the snapcraft.yaml template to define a package icon

Bug #1662034 reported by XiaoGuo, Liu
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

Currently, if I use "snapcraft init", it generates a template snapcraft.yaml for developers to start with. However, it misses "icon" field in the file, which is not so obvious to developers if a package icon is needed for making it different in the ubuntu store. Currently, a lot of snap apps just show a default icon which makes them look the same. It would be nice for each of them having a dedicated icon in the Ubuntu Store.

In the template, it would be good to have the icon field defined like:

icon: xxx.png/svg

so that developers know where to customize the snap package icon. They can easily design their own icon and replace it with their own.

Thanks & best regards,
XiaoGuo

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

I disagree with this, for two reasons:

1) The output from `snapcraft init` is intended to successfully create a snap, which means an icon would actually need to be generated.
2) Since an icon would need to be generated, it would likely become the "default icon" for snaps that don't have one, which defeats the purpose.

I'm not against putting a commented-out icon in the template though if we're worried about people not realizing that's an option. But if we're going to go that route, perhaps we should show a commented-out apps entry as well, etc.

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

In my past experience in designing apps for android and ubuntu phone, all of the templates generate a complete set of files which would generate the final package. In our case, a default ubuntu.png can still be used during the template generation to successfully generate the snap. However, a developer can easily find where to customize and replace the file with his/her own design to make the app's icon unique in the store.

Thanks & best regards,
XiaoGuo

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.