Skip to content

Commit 84ec4fc

Browse files
authored
fix(codecatalyst): "Open Dev Environment" fails on flatpak #3416
Problem: "Open CodeCatalyst Dev Environment" fails on flatpak (steamdeck). Solution: Prefer the special flatpak path `/app/bin/code`, instead of the $appRoot-relative path inferred from the current vscode process.
1 parent 1dc61e4 commit 84ec4fc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "\"Open CodeCatalyst Dev Environment\" fails on flatpak (steamdeck)"
4+
}

src/shared/systemUtilities.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ export class SystemUtilities {
197197
const vscExe = process.argv0
198198
// https://github.com/microsoft/vscode-test/blob/4bdccd4c386813a8158b0f9b96f31cbbecbb3374/lib/util.ts#L133
199199
const vscs = [
200+
// Special case for flatpak (steamdeck). #V896741845
201+
// https://github.com/flathub/com.visualstudio.code/blob/master/code.sh
202+
'/app/bin/code',
200203
// Note: macOS does not have a separate "code-insiders" binary.
201204
path.resolve(`${vscode.env.appRoot}/bin/code`), // macOS
202205
path.resolve(`${vscode.env.appRoot}/../../bin/code`), // Windows

0 commit comments

Comments
 (0)