diff --git a/app/src/lib/editors/linux.ts b/app/src/lib/editors/linux.ts index fdba2f17294..8fda7dfa269 100644 --- a/app/src/lib/editors/linux.ts +++ b/app/src/lib/editors/linux.ts @@ -37,9 +37,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.VSCode: - return getPathIfAvailable('/usr/bin/code') + return getFirstPathIfAvailable(['/snap/bin/code', '/usr/bin/code']) case ExternalEditor.VSCodeInsiders: return getFirstPathIfAvailable([ '/snap/bin/code-insiders',