https://github.com/ryanabx/flatpak-unsandbox
Run flatpak apps outside of the sandbox
https://github.com/ryanabx/flatpak-unsandbox
Last synced: over 1 year ago
JSON representation
Run flatpak apps outside of the sandbox
- Host: GitHub
- URL: https://github.com/ryanabx/flatpak-unsandbox
- Owner: ryanabx
- License: mit
- Created: 2024-05-20T18:12:31.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T18:17:08.000Z (about 2 years ago)
- Last Synced: 2024-05-22T21:56:34.499Z (about 2 years ago)
- Language: Rust
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flatpak Unsandbox
This rust crate allows rust flatpak apps to run themselves outside of the sandbox. The unsandboxed app will link to the flatpak's libraries, so dependencies won't be an issue.
## Example usage
```rust
fn main() -> Result<(), UnsandboxError> {
// Will error if not flatpacked or no permissions
let my_info = FlatpakInfo::new()?;
let cmd = vec![
CmdArg::new_path("/app/bin/flatrun-agent"),
CmdArg::new_string("--bundle".into()),
CmdArg::new_path("/var/home/1000/inkscape.flatpak"),
];
let env = vec![(
"PATH_TO_FLATPAK".to_string(),
CmdArg::new_path("/app/bin/flatpak"),
)];
let out = my_info
.run_unsandboxed(cmd, Some(env), None)?
.output()
.unwrap();
println!("{}", String::from_utf8(out.stdout).unwrap());
Ok(())
}
```
## Contributing
If there are issues with the crate, you may submit a bug report or attempt to fix the issue and make a PR!