Icon incorrectly assumed to be in www/ directory

Bug #1419985 reported by Robert Schroll
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cordova Ubuntu
Fix Released
High
Maxim Ermilov

Bug Description

If you specify "<icon src='res/icon.png' />" in your config.xml file, the Ubuntu build process tries to find "www/res/icon.png". In contrast, the Android build process looks for "res/icon.png". The Cordova docs [1] specify the latter: "src: (required) specifies the location of the image file, relative to your project directory".

[1] http://cordova.apache.org/docs/en/4.0.0/config_ref_images.md.html

Revision history for this message
David Planella (dpm) wrote :

Note that the behaviour differs depending on the Ubuntu release:

- Ubuntu 14.10: the icon is searched on $PROJECTDIR
- Ubuntu 15.04: the icon is searched on $PROJECTDIR/www

Revision history for this message
Daniel Beck (d-danielbeck) wrote :

The behaviour of finding the icon is dependant on the cordova version installed. See: https://bugs.launchpad.net/cordova-ubuntu/+bug/1455905/comments/5

Revision history for this message
David Barth (dbarth) wrote :

Upstream decided that the icon in the config.xml should be relative to the root directory of the app. This seems like a good solution.
Cordova-Ubuntu has been updated to reflect that change and work consistenly with the click package reviewers tool.

The latest version of cordova-ubuntu has this fixed now : https://github.com/Zaspire/cordova-ubuntu/commit/b7621b35cc7930fdfda6015647366e1e43b6e77d

To fix the problem in your project, you should:
1. remove the cached cordova-ubuntu code: rm -rf ~/.cordova
2. uninstall Ubuntu from your project: cordova platform rm ubuntu
3. re-install the Ubuntu platform support code: cordova platform add ubuntu

Changed in cordova-ubuntu:
status: New → Fix Released
importance: Undecided → High
assignee: nobody → Maxim Ermilov (zaspire)
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.