Skip to content

Commit

Permalink
Merge pull request #268 from nazar-pc/search-by-binary-name
Browse files Browse the repository at this point in the history
[Linux] Add binary name support during app search
  • Loading branch information
KELiON authored Apr 6, 2017
2 parents 347faa5 + fc18177 commit ee8eefa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/main/plugins/core/basic-apps/linux.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,14 @@ const findIcon = (icon) => {
)).find(fs.existsSync)
}

export const toString = ({ name }) => `${name} ${getAbbr(name)}`
export const toString = ({ name, exec }) => {
const binaryName = exec
.split('/')
.pop()
.split(' ')
.shift()
return `${name} ${getAbbr(name)} ${binaryName}`
}

export const formatPath = (filePath) => {
const parsedData = parseDesktopFile(filePath, {
Expand Down

0 comments on commit ee8eefa

Please sign in to comment.