Go to file
Alexander Larsson c053c49ead Extend flatpak-builder test
We now test including modules, including doing
so recursively, and find patches and source files from
those.
2017-04-24 10:04:23 +02:00
app build-update-repo: Spawn subprocesses when generating deltas 2017-04-19 22:16:17 +02:00
bubblewrap@5dec838ba8 Update bubblewrap to final 0.1.7 release 2017-01-18 16:26:01 +01:00
builder builder: Use context_find_in_sources_dirs to simplify code 2017-04-24 09:02:42 +02:00
buildutil spelling: progressive 2016-05-27 06:45:16 +00:00
common common: Add flatpak_build_file[_va] helper 2017-04-24 09:02:33 +02:00
completion Add more completions 2016-05-30 14:54:22 +02:00
data bundles: Support dependencies and runtime-repo 2016-12-20 16:27:57 +01:00
dbus-proxy dbus-proxy: Fix leak in setup phase 2017-03-31 13:06:44 +02:00
dbus.service.d install dbus systemd service file snippet 2016-07-26 13:33:31 -04:00
doc docs: Typo fix: "flatpack-builder" -> "flatpak-builder" 2017-04-20 20:53:59 +03:00
document-portal document portal: Disable spice_read as it seems broken 2017-02-23 16:55:49 +01:00
env.d Get the system installation dir right in XDG_DATA_DIRS 2016-05-20 09:21:19 +02:00
lib Use correct format string for guint64 on 32-bit 2017-04-04 12:17:28 +02:00
libglnx@602fdd93cb Bump libglnx, use new glnx_throw(), fix callers 2017-03-27 10:42:36 +02:00
m4 Import ostree's compiler warnings, fix up callers 2017-03-27 10:42:36 +02:00
permission-store Fix compiler warnings with uninitialised cleanup pointers 2017-01-19 10:05:13 +01:00
po Update Czech translation 2017-04-20 21:15:42 +02:00
profile Improve and simplify profile snippet 2017-03-14 21:48:58 +01:00
scripts scripts: Add a script to allow bisecting failures 2017-02-23 17:41:06 +01:00
session-helper flatpak-session-helper.c: Make failure of TIOCSCTTY a g_debug() 2017-01-27 10:47:13 +01:00
system-helper Fix unused variable errors reported by clang 2017-03-30 10:01:24 +02:00
tests Extend flatpak-builder test 2017-04-24 10:04:23 +02:00
triggers Pass location of exports to triggers as arg1 2016-02-09 14:50:35 +01:00
.gitignore Import ostree's compiler warnings, fix up callers 2017-03-27 10:42:36 +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 release 2017-04-05 09:51:00 +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.2 2017-04-05 09:52:30 +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.