Skip to content

feat: add support for Flatpak#188

Open
acolombier wants to merge 1 commit intojeanp413:masterfrom
acolombier:feat/support-flatpak
Open

feat: add support for Flatpak#188
acolombier wants to merge 1 commit intojeanp413:masterfrom
acolombier:feat/support-flatpak

Conversation

@acolombier
Copy link
Copy Markdown

Adding support for Codium installed via Flatpak without full flesystem access

Comment thread src/common/platform.ts
export const isWindows = process.platform === 'win32';
export const isMacintosh = process.platform === 'darwin';
export const isLinux = process.platform === 'linux';
export const isFlatpak = !!process.env['FLATPAK_ID'];
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be other envvar that could be used, let me know if you would like me to consolidate that

Comment thread src/authResolver.ts
}

if (isFlatpak) {
proxyArgs = ["--", "flatpak-spawn", "--host", "--env=TERM=xterm-256", proxyCommand, ...proxyArgs];
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if you would lime to use the TERM envvar defined locally if existing instead of forcing this xterm setup

@acolombier acolombier force-pushed the feat/support-flatpak branch from 5747552 to 1cffaaa Compare April 8, 2025 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant