mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
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.
This commit is contained in:
parent
60d6f672d1
commit
2fc66a42fa
1 changed files with 2 additions and 2 deletions
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue