Go to file
Colin Walters 2618a19716 Import ostree's compiler warnings, fix up callers
In ostree I maintain what I consider a "baseline" set of compiler
warnings that should *always* be fatal for a modern C project.

I noticed while working on a previous patch that a `-Werror=format`
warning wasn't fatal.

There are a few that are really, really important like
`-Werror=missing-prototypes`. I also take some like `-Werror=misleading-indentation`
which already caught some bugs.  See also https://lwn.net/Articles/678019/
2017-03-27 10:42:36 +02:00
app Bump libglnx, use new glnx_throw(), fix callers 2017-03-27 10:42:36 +02:00
bubblewrap@5dec838ba8 Update bubblewrap to final 0.1.7 release 2017-01-18 16:26:01 +01:00
builder Bump libglnx, use new glnx_throw(), fix callers 2017-03-27 10:42:36 +02:00
buildutil spelling: progressive 2016-05-27 06:45:16 +00:00
common Import ostree's compiler warnings, fix up callers 2017-03-27 10:42:36 +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: Tight down what is allowed to send to the bus 2016-10-17 12:19:46 +02:00
dbus.service.d install dbus systemd service file snippet 2016-07-26 13:33:31 -04:00
doc document more metadata keys 2017-03-27 08:59:06 +02: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 Import ostree's compiler warnings, fix up callers 2017-03-27 10:42:36 +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-03-27 10:33:20 +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 system-helper: Add User=root to service file 2017-01-23 16:30:52 +01:00
tests tests: Fix oci test 2017-03-14 11:53:43 +01: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: require ostree package too 2017-02-23 17:11:51 +01:00
COPYING Add COPYING to reflect license headers 2015-03-31 15:36:29 +01:00
Makefile.am Import ostree's compiler warnings, fix up callers 2017-03-27 10:42:36 +02:00
NEWS Update NEWS for release 2017-03-15 09:43:50 +01: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 Import ostree's compiler warnings, fix up callers 2017-03-27 10:42:36 +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.