Skip to content

Commit

Permalink
update linux.ts to include snap atom (#178)
Browse files Browse the repository at this point in the history
Addresses #147
  • Loading branch information
tsutterley authored and shiftkey committed May 1, 2020
1 parent 4b2d685 commit 6380c35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/lib/editors/linux.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ async function getFirstPathIfAvailable(
async function getEditorPath(editor: ExternalEditor): Promise<string | null> {
switch (editor) {
case ExternalEditor.Atom:
return getPathIfAvailable('/usr/bin/atom')
return getFirstPathIfAvailable(['/snap/bin/atom', '/usr/bin/atom'])
case ExternalEditor.VSCode:
return getPathIfAvailable('/usr/bin/code')
return getFirstPathIfAvailable(['/snap/bin/code', '/usr/bin/code'])
case ExternalEditor.VSCodeInsiders:
return getFirstPathIfAvailable([
'/snap/bin/code-insiders',
Expand Down

0 comments on commit 6380c35

Please sign in to comment.