Skip to content

Commit 9e3d73c

Browse files
authored
Merge pull request #21 from HarshitPal25/fix-flatpak-permissions
Fix flatpak permissions
2 parents 712fc8e + 6aaaeec commit 9e3d73c

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,39 @@ See [LICENSE](LICENSE) for details.
114114
- [Open an issue](https://github.com/BuddySirJava/SSH-Studio/issues) on GitHub.
115115
- Check [Flathub page](https://flathub.org/en/apps/io.github.BuddySirJava.SSH-Studio).
116116

117+
## Troubleshooting Flatpak Sandbox
118+
119+
If “Test SSH Connection” still fails, grant the sandbox the Flatpak talk permission:
120+
121+
```bash
122+
flatpak override --user --talk-name=org.freedesktop.Flatpak com.buddysirjava.ssh-studio
123+
flatpak run com.buddysirjava.ssh-studio
124+
```
125+
126+
3. Save the file.
127+
---
128+
129+
## 5. Verify the Fix
130+
131+
1. **Rebuild & reinstall** with your updated manifest:
132+
```bash
133+
flatpak-builder \
134+
--user \
135+
--install \
136+
--force-clean \
137+
build-dir \
138+
com.buddysirjava.ssh-studio.json
139+
```
140+
```
141+
flatpak run com.buddysirjava.ssh-studio```
142+
143+
## Using flatpak app id to try and fix the issue
144+
145+
```bash
146+
flatpak list
147+
```
148+
as an example you use vscode to run these
149+
```bash
150+
flatpak override --user --talk-name=org.freedesktop.Flatpak com.visualstudio.code
151+
```
152+
now run the code.

io.github.BuddySirJava.SSH-Studio.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
"--socket=wayland",
1111
"--share=network",
1212
"--filesystem=~/.ssh:rw",
13-
"--socket=ssh-auth"
13+
"--socket=ssh-auth",
14+
"--talk-name=org.freedesktop.Flatpak",
15+
"--socket=session-bus",
16+
"--device=dri",
17+
"--share=ipc",
18+
"filesystem=home"
1419
],
1520
"cleanup" : [
1621
"/include",

0 commit comments

Comments
 (0)