You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2015/11/25 02:57:54 UTC
[2/3] cordova-lib git commit: sync icon path lookup with the code in
the manifest generation
sync icon path lookup with the code in the manifest generation
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/19111caa
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/19111caa
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/19111caa
Branch: refs/heads/master
Commit: 19111caa73d0b1453d1ccf4005d4c4e0a136f4ef
Parents: eefd874
Author: David Barth <da...@canonical.com>
Authored: Wed Sep 23 12:50:05 2015 +0200
Committer: Steve Gill <st...@gmail.com>
Committed: Tue Nov 24 17:45:25 2015 -0800
----------------------------------------------------------------------
cordova-lib/src/cordova/metadata/ubuntu_parser.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/19111caa/cordova-lib/src/cordova/metadata/ubuntu_parser.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/metadata/ubuntu_parser.js b/cordova-lib/src/cordova/metadata/ubuntu_parser.js
index 2050e08..034c998 100644
--- a/cordova-lib/src/cordova/metadata/ubuntu_parser.js
+++ b/cordova-lib/src/cordova/metadata/ubuntu_parser.js
@@ -100,7 +100,7 @@ ubuntu_parser.prototype.update_manifest = function() {
var content = '[Desktop Entry]\nName=' + name + '\nExec=./cordova-ubuntu www/\nTerminal=false\nType=Application\nX-Ubuntu-Touch=true';
if (this.config.doc.find('icon') && this.config.doc.find('icon').attrib.src) {
- var iconPath = path.join(this.path, this.config.doc.find('icon').attrib.src);
+ var iconPath = path.join(this.path, '../..', this.config.doc.find('icon').attrib.src);
if (fs.existsSync(iconPath))
content += '\nIcon=www/' + this.config.doc.find('icon').attrib.src;
else
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org