From edfae76b91714a0e214839192f60d753139c713b Mon Sep 17 00:00:00 2001 From: Tyler C Sutterley Date: Mon, 14 Oct 2019 11:05:18 -0700 Subject: [PATCH] update linux.ts to include snap atom (#178) Addresses #147 --- app/src/lib/editors/linux.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/lib/editors/linux.ts b/app/src/lib/editors/linux.ts index 55d4b961499..82a0451f084 100644 --- a/app/src/lib/editors/linux.ts +++ b/app/src/lib/editors/linux.ts @@ -59,9 +59,9 @@ async function getFirstPathIfAvailable( async function getEditorPath(editor: ExternalEditor): Promise { switch (editor) { case ExternalEditor.Atom: - return getPathIfAvailable('/usr/bin/atom') + return getFirstPathIfAvailable(['/snap/bin/atom', '/usr/bin/atom']) case ExternalEditor.VisualStudioCode: - return getPathIfAvailable('/usr/bin/code') + return getFirstPathIfAvailable(['/snap/bin/code', '/usr/bin/code']) case ExternalEditor.VisualStudioCodeInsiders: return getFirstPathIfAvailable([ '/snap/bin/code-insiders',