Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a try to create a new Apprun using bwrap and without doing chroot.
It needs bubblewrap to be installed on the machine that will run the AppImage.
It allows all files from the root folder to be visible inside the appimage. For example, vim can now load plugins or run LSP server installed outside the AppImage.
However, if /nix already exist on the computer, it will be replaced inside the bwrap sandbox by the /nix of the AppImage. So it's not meant to be used in nixos or any computer with nix already installed.
I didn't tested, but normally bwrap don't prevent to create user namespaces (related to #10 ), so you should be able to run chromium or any electron apps. However you may still need nixGL for opengl related things.
The apprun is written in bash and can probably be improved, I'm open to suggestions and thank you for your incredible project !