Go to file
Alexander Larsson ec89340a26 tests: Add a second gpg keyring 2017-05-10 11:54:27 +02:00
app Make it possible to unset values in update-repo 2017-05-10 11:53:01 +02:00
bubblewrap@30548332a7 Update to bubblewrap 0.1.8 for die-with-parent 2017-05-04 10:40:29 +02:00
builder builder: Fix ldflags support 2017-05-04 09:42:52 +02:00
buildutil spelling: progressive 2016-05-27 06:45:16 +00:00
common Add a marker to rewritten desktop files 2017-05-10 11:54:19 +02:00
completion Add more completions 2016-05-30 14:54:22 +02:00
data remote-modify: Implement --update-metadata as a system-helper method 2017-05-09 13:25:21 +02: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 Document is-set keys in repo config 2017-05-10 11:53:33 +02:00
document-portal Generate fd-passing arguments for document portal 2017-05-03 13:27:52 +02:00
env.d Get the system installation dir right in XDG_DATA_DIRS 2016-05-20 09:21:19 +02:00
lib update: Split update into check_for_update and update 2017-05-09 14:08:27 +02:00
libglnx@3a4d0f4684 libglnx: Bump to latest master, use new file copy API 2017-04-28 10:04:22 -04:00
m4 Import ostree's compiler warnings, fix up callers 2017-03-27 10:42:36 +02:00
permission-store Add macros for common ANSI tty escape codes 2017-05-03 11:17:41 +02:00
po Update German translation 2017-04-29 14:27:55 +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 Expose host /etc/hosts and /etc/host.conf 2017-05-04 13:08:25 +02:00
system-helper Drop an unused variable 2017-05-10 11:43:40 +02:00
tests tests: Add a second gpg keyring 2017-05-10 11:54:27 +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 NEWS: Update for release 2017-04-24 22:12:51 +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 Update to bubblewrap 0.1.8 for die-with-parent 2017-05-04 10:40:29 +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.