Package scripts in flatpak?

Justin Garrison justinleegarrison at gmail.com
Mon May 8 14:29:54 UTC 2017


>
> This is not really the target usecase for flatpak, but it could very well
> work. However, it depends a bit on what you mean by full system access. You
> can easily package the python scripts and libraries in a flatpak, and then
> grant that app full filesystem and network access. However, it will not be
> able to see some things. For instance, /usr and /etc will be from the
> runtime, not the host, and /run, /tmp, /proc etc are specific to the
> sandboxed instance. /dev is too, but you can grant access to the host dev
> if you need. It really depends on what you want to do.
>
> Also, running the scripts will be somewhat painful. Say the app is
> org.my.Scripts, then you can do something like:
>
>  flatpak run --command=script1 org.my.Scripts --args-for-script
>
>
> Which is hardly ideal for CLI use. Although some aliases for this could make it easier to use.
>
> ​Ideally we would be using puppet to configure the system (not just a
subset of it) so we would need access to /usr and /etc from the host.
Thanks for the information. I'll look to see if snap or appimage will work
instead.​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20170508/3d4b9307/attachment.html>


More information about the xdg-app mailing list