From afa81eae6b9b69f53470ec8e0e26a9408f76117a Mon Sep 17 00:00:00 2001 From: dark_angel Date: Sat, 27 Sep 2025 00:15:38 +0530 Subject: [PATCH 1/2] fix(flatpak): add talk-name=org.freedesktop.Flatpak permission and docs --- README.md | 27 ++++++++++++++++++++++++++ io.github.BuddySirJava.SSH-Studio.json | 7 ++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d3fe5ef..5f2bb82 100644 --- a/README.md +++ b/README.md @@ -114,3 +114,30 @@ See [LICENSE](LICENSE) for details. - [Open an issue](https://github.com/BuddySirJava/SSH-Studio/issues) on GitHub. - Check [Flathub page](https://flathub.org/en/apps/io.github.BuddySirJava.SSH-Studio). +## Troubleshooting Flatpak Sandbox + +If “Test SSH Connection” still fails, grant the sandbox the Flatpak talk permission: + +```bash +flatpak override --user --talk-name=org.freedesktop.Flatpak com.buddysirjava.ssh-studio +flatpak run com.buddysirjava.ssh-studio +``` + +3. Save the file. + +--- + +## 5. Verify the Fix + +1. **Rebuild & reinstall** with your updated manifest: + ```bash + flatpak-builder \ + --user \ + --install \ + --force-clean \ + build-dir \ + com.buddysirjava.ssh-studio.json +``` +``` +flatpak run com.buddysirjava.ssh-studio +``` \ No newline at end of file diff --git a/io.github.BuddySirJava.SSH-Studio.json b/io.github.BuddySirJava.SSH-Studio.json index b896214..8b08490 100644 --- a/io.github.BuddySirJava.SSH-Studio.json +++ b/io.github.BuddySirJava.SSH-Studio.json @@ -10,7 +10,12 @@ "--socket=wayland", "--share=network", "--filesystem=~/.ssh:rw", - "--socket=ssh-auth" + "--socket=ssh-auth", + "--talk-name=org.freedesktop.Flatpak", + "--socket=session-bus", + "--device=dri", + "--share=ipc", + "filesystem=home" ], "cleanup" : [ "/include", From 6aaaeec499b271bf77d33bbdd9485c937553cc20 Mon Sep 17 00:00:00 2001 From: Harshit Pal Date: Sat, 27 Sep 2025 00:26:28 +0530 Subject: [PATCH 2/2] fix(flatpak): add talk-name=org.freedesktop.Flatpak permission and docs --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5f2bb82..9a77911 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,6 @@ flatpak run com.buddysirjava.ssh-studio ``` 3. Save the file. - --- ## 5. Verify the Fix @@ -139,5 +138,15 @@ flatpak run com.buddysirjava.ssh-studio com.buddysirjava.ssh-studio.json ``` ``` -flatpak run com.buddysirjava.ssh-studio -``` \ No newline at end of file +flatpak run com.buddysirjava.ssh-studio``` + +## Using flatpak app id to try and fix the issue + +```bash +flatpak list +``` +as an example you use vscode to run these +```bash +flatpak override --user --talk-name=org.freedesktop.Flatpak com.visualstudio.code +``` +now run the code. \ No newline at end of file