From 2fc66a42faeb751543a3323e1d294607e66948cb Mon Sep 17 00:00:00 2001 From: Dave Perdue Date: Wed, 16 Dec 2015 11:59:01 -0800 Subject: [PATCH] Remove redundant path in .desktop for Linux The install-task has two instructions that add an extra "resources" to the iconName directory and thus the icon doesn't work. The resulting nylus.desktop has an invalid path for the icon. --- build/tasks/install-task.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/tasks/install-task.coffee b/build/tasks/install-task.coffee index ca4b57a77..3c266f2e6 100644 --- a/build/tasks/install-task.coffee +++ b/build/tasks/install-task.coffee @@ -33,7 +33,7 @@ module.exports = (grunt) -> else binDir = path.join(installDir, 'bin') shareDir = path.join(installDir, 'share', 'nylas') - iconName = path.join(shareDir, 'resources', 'app', 'resources', 'nylas.png') + iconName = path.join(shareDir, 'resources', 'app', 'nylas.png') mkdir binDir # Note that `N1.sh` can't be renamed `nylas.sh` because `apm` @@ -50,7 +50,7 @@ module.exports = (grunt) -> desktopInstallFile = path.join(installDir, 'share', 'applications', 'nylas.desktop') {description} = grunt.file.readJSON('package.json') - iconName = path.join(shareDir, 'resources', 'app', 'resources', 'nylas.png') + iconName = path.join(shareDir, 'resources', 'app', 'nylas.png') installDir = path.join(installDir, '.') # To prevent "Exec=/usr/local//share/nylas/nylas" template = _.template(String(fs.readFileSync(desktopFile))) filled = template({description, installDir, iconName})