From 125fd9d229cab068a3ae7f99664b39829141e6e4 Mon Sep 17 00:00:00 2001 From: Abhijay Jain Date: Thu, 16 Jul 2026 19:02:28 +0530 Subject: [PATCH 1/2] fix(flatpak): bundle git so hermit can clone its package registry Hermit needs git to clone the hermit-packages registry from GitHub when installing MCP extensions. The Flatpak sandbox does not expose git by default, so copy the git binary and git-remote-https helper from the SDK into /app/bin during the Flatpak build. Fixes #10497 --- ui/desktop/forge.config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/desktop/forge.config.ts b/ui/desktop/forge.config.ts index 5bf33a87f16f..9d89d8d71abf 100644 --- a/ui/desktop/forge.config.ts +++ b/ui/desktop/forge.config.ts @@ -143,6 +143,15 @@ module.exports = { 'ln -s $(find /usr/lib -name "libbz2.so.1" | head -n 1) /app/lib/libbz2.so.1.0', ], }, + { + name: 'git', + buildsystem: 'simple', + 'build-commands': [ + 'mkdir -p /app/bin /app/libexec/git-core', + 'cp /usr/bin/git /app/bin/git', + 'cp /usr/libexec/git-core/git-remote-https /app/libexec/git-core/git-remote-https 2>/dev/null || true', + ], + }, ], finishArgs: [ '--share=ipc', From bba510602658fbc20af96112e113c8bbc423e278 Mon Sep 17 00:00:00 2001 From: Abhijay Bhatnagar Date: Fri, 17 Jul 2026 19:52:19 +0530 Subject: [PATCH 2/2] fix(flatpak): set GIT_EXEC_PATH so bundled git finds its helpers The copied git binary resolves helper paths from its compiled prefix (/usr/libexec/git-core), which does not exist in the Flatpak Platform runtime. Set GIT_EXEC_PATH to point at the helpers bundled under /app/libexec/git-core so git-remote-https is found at runtime. --- ui/desktop/forge.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/desktop/forge.config.ts b/ui/desktop/forge.config.ts index 9d89d8d71abf..95fbbe9d36d2 100644 --- a/ui/desktop/forge.config.ts +++ b/ui/desktop/forge.config.ts @@ -165,6 +165,7 @@ module.exports = { '--socket=system-bus', // This ensures the app looks in our shim folder first '--env=LD_LIBRARY_PATH=/app/lib', + '--env=GIT_EXEC_PATH=/app/libexec/git-core', ], }, },