"No such file or directory" on musl libc Linux distributions when escaping the Flatpak sandbox
- Dominant language
- No language data
- Stars
- 26
- Forks
- 16
- Avg merge
- 2h 40m
- Merged PRs (30d)
- 8
Description
EDIT: The original text of this issue assumes that this Flatpak of Zed *doesn't* escape the Flatpak sandbox, which it does, and so it's like running `zed` directly, which in this case doesn't work as Zed is dynamically linked against glibc.
---
Hello, I'm having trouble running this on Alpine Linux -- though I assume that the choice of distro shouldn't matter too much since it's flatpak.
Zed doesn't even start, `flatpak run dev.zed.Zed` immediately fails to launch the binary.
```console
$ flatpak run dev.zed.Zed
Portal call failed: Failed to start command: Failed to execute child process “/var/lib/flatpak/app/dev.zed.Zed/x86_64/stable/29feaf6558a8c888be0fba1f474731bb7775cee82c1dfd126e724122c643e3e7/files/bin/zed” (No such file or directory)
```
The file is there, but I can't run it directly (outside of flatpak) because Alpine has `musl` instead of `glibc` and the Linux release of Zed is dynamically linked to `glibc`.
```console
$ /var/lib/flatpak/app/dev.zed.Zed/x86_64/stable/29feaf6558a8c888be0fba1f474731bb7775cee82c1dfd126e724122c643e3e7/files/bin/zed
exec: Failed to execute process '/var/lib/flatpak/app/dev.zed.Zed/x86_64/stable/29feaf6558a8c888be0fba1f474731bb7775cee82c1dfd126e724122c643e3e7/files/bin/zed': The file exists and is executable. Check the interpreter or linker?
```
There is a [seemingly relevant open issue in Flatpak itself](https://github.com/flatpak/flatpak/issues/5597) where the OS is NixOS, which tends to share with Alpine these kinds of issues.
Since I don't have issues with any other Flatpak package, could it be that the issue is with `dev.zed.Zed`? Thank you.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.