Go to file
Alexander Larsson bc7ebd20e2 builder: Allow .pyc files without .py
This is common for binary-only releases, for example as described
in:
https://lists.freedesktop.org/archives/flatpak/2017-June/000697.html
2017-06-13 11:17:06 +02:00
app build-export: Canonicalize file permissions 2017-06-08 08:50:46 +02:00
bubblewrap@30548332a7 Update to bubblewrap 0.1.8 for die-with-parent 2017-05-04 10:40:29 +02:00
builder builder: Allow .pyc files without .py 2017-06-13 11:17:06 +02:00
buildutil spelling: progressive 2016-05-27 06:45:16 +00:00
common dir: Ensure ~/.local/share/flatpak is 0700 2017-06-08 17:00:20 +02:00
completion Add more completions 2016-05-30 14:54:22 +02:00
data document store: Document as-needed functionality of AddFull 2017-05-29 09:43:35 -04:00
dbus-proxy dbus-portal: Fix return value type of filtered NameHasOwner 2017-05-31 08:58:08 +02:00
dbus.service.d install dbus systemd service file snippet 2016-07-26 13:33:31 -04:00
doc doc: Remove duplicate list entry from flatpak-remote.xml 2017-06-06 19:42:54 +01:00
document-portal xdp-main: Fix a typo in a comparison 2017-06-06 19:43:09 +01:00
env.d Get the system installation dir right in XDG_DATA_DIRS 2016-05-20 09:21:19 +02:00
lib lib: Fix update checking 2017-05-22 15:28:53 +02:00
libglnx@2f8fdf80ec Update to latest libglnx and use the new GLnxTmpFile API 2017-05-22 09:08:49 +02:00
m4 Import ostree's compiler warnings, fix up callers 2017-03-27 10:42:36 +02:00
permission-store Add version property to all dbus interfaces 2017-05-19 14:38:22 +02:00
po Update pofiles 2017-06-05 13:52:23 +02:00
profile Improve and simplify profile snippet 2017-03-14 21:48:58 +01:00
scripts scripts: Fix flatpak-bisect log 2017-05-02 15:01:19 +02:00
session-helper Add version property to all dbus interfaces 2017-05-19 14:38:22 +02:00
system-helper Add version property to all dbus interfaces 2017-05-19 14:38:22 +02:00
tests builder: Allow .pyc files without .py 2017-06-13 11:17:06 +02:00
triggers Pass location of exports to triggers as arg1 2016-02-09 14:50:35 +01:00
.gitignore tests: Add a second gpg keyring 2017-05-10 11:54:27 +02:00
.gitmodules Add bubblewrap submodule 2016-04-29 15:38:20 +02:00
.redhat-ci.yml CI: Add gpgme-devel to CI build environment 2017-03-30 10:01:24 +02:00
COPYING Add COPYING to reflect license headers 2015-03-31 15:36:29 +01:00
Makefile.am OCI: Add flatpak_oci_sign_data 2017-03-29 17:14:36 +02:00
NEWS Update NEWS for relase 2017-06-05 13:35:56 +02:00
README.md Remove extra bracket 2017-02-04 10:25:54 +01:00
acinclude.m4 Add AX_COMPARE_VERSION to acinclude.m4 2016-09-09 10:03:27 +02:00
autogen.sh Use upstream gettext 2016-07-15 11:58:46 -04:00
configure.ac Bump version to 0.9.5 2017-06-05 13:36:16 +02:00
flatpak.pc.in Drop libgsystem dependency 2016-08-22 16:00:33 +02:00
flatpak.png Add the logo to README.md 2016-06-02 18:05:22 -04:00
uncrustify.cfg Add uncrustify config 2016-05-06 15:27:19 +02:00
uncrustify.sh Add uncrustify config 2016-05-06 15:27:19 +02:00

README.md

Flatpak icon

Flatpak is a system for building, distributing and running sandboxed desktop applications on Linux.

See http://flatpak.org/ for more information.

Read documentation for the flatpak commandline tools and for the libflatpak library API.

INSTALLATION

Flatpak uses a traditional autoconf-style build mechanism. To build just do

 ./configure [args]
 make
 make install

Most configure arguments are documented in ./configure --help. However, there are some options that are a bit more complicated.

Flatpak relies on a project called bubblewrap for the lowlevel sandboxing. By default, an in-tree copy of this is built (distributed in the tarball or using git submodules in the git tree). This will build a helper called flatpak-bwrap. If your system have a recent enough version of bubblewrap already, you can use --with-system-bubblewrap to use that instead.

Bubblewrap can run in two modes, either using unprivileged user namespaces. This requires that the kernel supports this, which some distributions disable. For instance, Arch completely disables user namespaces, while Debian supports unprivileged user namespaces, but only if you turn on the kernel.unprivileged_userns_clone sysctl.

If unprivileged user namespaces is not available, then bubblewrap must be built as setuid root. This is believed to be safe, as it is designed to do this. Any build of bubblewrap supports both unprivileged and setuid mode, you just need to set the setuid bit for it to change mode.

However, this it does complicate the installation a bit. If you pass --with-priv-mode=setuid to configure (of flatpak or bubblewrap) then make install will try to set the setuid bit. However that means you have to run make install as root. Alternatively, you can pass --enable-sudo to configure and it will call sudo when setting the setuid bit. Alternatively you can enable setuid completely outside of the installation, which is common for example when packaging bubblewrap in a .deb or .rpm.

There are some complications when building flatpak to a different prefix than the system-installed version. First of all, the newly built flatpak will look for system-installed flatpaks in $PREFIX/var/lib/flatpak, which will not match existing installed flatpaks. You can use --with-system-install-dir=/var/lib/flatpak to make both installations use the same location.

Secondly, flatpak ships with a root-privileged policykit helper for system-installation, called flatpak-system-helper. This is dbus activated (on the system-bus) and if you install in a non-standard location it is likely that this will not be found by dbus and policykit. However, if the system installation is synchronized it you can often use the system installed helper instead. At least if the two versions are close in versions.