From 40de6a7114598762b90a24241c332e20855eeacd Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 5 Feb 2015 10:11:36 -0800 Subject: [PATCH] Add executable value to desktop file template Closes #5419 --- 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 ec99ad967..5131f512c 100644 --- a/build/tasks/install-task.coffee +++ b/build/tasks/install-task.coffee @@ -47,9 +47,9 @@ module.exports = (grunt) -> {description} = grunt.file.readJSON('package.json') iconName = path.join(shareDir, 'resources', 'app', 'resources', 'atom.png') - installDir = path.join(installDir, '.') # To prevent "Exec=/usr/local//share/atom/atom" + executable = path.join(shareDir, 'atom') template = _.template(String(fs.readFileSync(desktopFile))) - filled = template({description, installDir, iconName}) + filled = template({description, iconName, executable}) grunt.file.write(desktopInstallFile, filled)