Commit Graph

908 Commits

Author SHA1 Message Date
Timm Bäder
fbcdb07768 app-utils: typo 2016-02-03 15:43:49 +01:00
Alexander Larsson
2d85126fc4 Add app-path to the xdg-app-info in the sandbox
This lets you find where the host can see your files.  This is useful
for instance when you want an external app (such as a help reader) to
read your files.
2016-02-03 14:12:36 +01:00
Alexander Larsson
05f79d8d66 common: Always resolve active symlink when looking up deploy dir 2016-02-03 14:12:08 +01:00
Alexander Larsson
74b7779cde install-app: Actually look for apps, not runtimes 2016-02-03 14:03:42 +01:00
Richard Hughes
79aacf0640 lib: Fix crash during uninstall 2016-02-03 11:00:25 +01:00
Alexander Larsson
43ac6421f9 builder: Store exact sdk commit id in the build cache and manifest
This means we rebuild everything if the sdk changes, and you can also
see what version an app was built against.
2016-02-03 10:57:50 +01:00
Alexander Larsson
1d5fb6438b Add xdg-app info command 2016-02-02 17:51:10 +01:00
Alexander Larsson
9f2769e0ce builder: Use non-parallel-make option instead of looking at .NONPARALLEL 2016-02-01 21:40:22 +01:00
Alexander Larsson
8144a70bd7 helper: Make ~/.local/share/xdg-app writable again (if you have homedir access)
This makes the gnome-software app work, and if you have homedir access
you have all sort of ways to mess up apps anyway, so this is fake security.
2016-02-01 21:39:20 +01:00
Alexander Larsson
913eccd30f builder: Add shell source
This lets you run shell commands to modify the source
2016-02-01 21:26:20 +01:00
Alexander Larsson
bd174d90bc install: Only set current for apps, not for runtimes 2016-01-29 15:54:54 +01:00
Alexander Larsson
9fd3c7b0c3 Release 0.4.8 0.4.8 2016-01-29 11:13:15 +01:00
Alexander Larsson
d95590b9ca Merge pull request #111 from smcv/distcheck
Make `make distcheck` work
2016-01-29 10:56:31 +01:00
Simon McVittie
71a30f54f3 Update tests' dependencies for commit 2f38ec65 2016-01-29 09:51:20 +01:00
Simon McVittie
0a813296d8 Remove unset variable from EXTRA_DIST
Signed-off-by: Simon McVittie <smcv@debian.org>
2016-01-29 09:50:44 +01:00
Simon McVittie
a0fc3c1df3 Distribute .service.in files in tarballs
Signed-off-by: Simon McVittie <smcv@debian.org>
2016-01-29 09:50:30 +01:00
Simon McVittie
9a6bf95054 Disable gtkdoc-check by default for now
We know the documentation is incomplete, so there seems little value
in having 'make check' tell us that. Everything except the documentation
check is expected to succeed, so it's now more useful to report test
failures in continuous integration systems, making functional
regressions more visible.

Signed-off-by: Simon McVittie <smcv@debian.org>
2016-01-29 09:41:23 +01:00
Alexander Larsson
a754db12a2 Merge pull request #106 from smcv/symbol-hiding
Hide non-public symbols from libglnx and libxdgapp-common
2016-01-29 09:01:37 +01:00
Alexander Larsson
7f20b44679 Merge pull request #107 from smcv/sd-units
Add systemd user units
2016-01-29 09:00:36 +01:00
Alexander Larsson
a0a1bc4d0b Merge pull request #108 from smcv/no-fuse
Fix `make check` when FUSE is unavailable
2016-01-29 08:54:58 +01:00
Alexander Larsson
f0e87af929 Merge pull request #109 from smcv/fhs
Move XDG_APP_SYSTEMDIR to /var/lib/xdg-app or similar
2016-01-29 08:54:25 +01:00
Alexander Larsson
3fd50ea3ac Merge pull request #110 from smcv/asserts
Consistently call g_assert_no_error before other assertions
2016-01-29 08:52:55 +01:00
Alexander Larsson
36f527f3a8 Merge pull request #105 from smcv/build
Build top-level directory before building documentation
2016-01-29 08:51:46 +01:00
Alexander Larsson
4ac5befb7f Support a proxy on the system bus similar to the one on the session bus 2016-01-29 08:50:11 +01:00
Simon McVittie
8cfad98738 Move XDG_APP_SYSTEMDIR to /var/lib/xdg-app or similar
The FHS specifies a limited number of subdirectories for /var,
which do not include xdg-app. Packaging systems like RPM and dpkg
use a subdirectory of /var/lib, so it seems appropriate for system-wide
xdg-app runtimes and apps too.

Signed-off-by: Simon McVittie <smcv@debian.org>
2016-01-29 00:23:35 +01:00
Simon McVittie
ea4d601837 Consistently call g_assert_no_error before other assertions
If a call fails, an assertion message that contains the error domain,
code and message is a lot more useful than reporting that an
assertion like "reply != NULL" failed.

Signed-off-by: Simon McVittie <smcv@debian.org>
2016-01-29 00:21:49 +01:00
Simon McVittie
aaae0d0b6d test-doc-portal: skip all tests if no FUSE
Signed-off-by: Simon McVittie <smcv@debian.org>
2016-01-29 00:02:25 +01:00
Simon McVittie
74c652a176 test-doc-portal: split out global setup/teardown into functions
Signed-off-by: Simon McVittie <smcv@debian.org>
2016-01-29 00:02:00 +01:00
Simon McVittie
ba0694bfb9 .gitignore: ignore tests and their results 2016-01-29 00:01:36 +01:00
Simon McVittie
9efe31e8d4 Add systemd user units corresponding to the D-Bus session services
Signed-off-by: Simon McVittie <smcv@debian.org>
2016-01-28 23:45:47 +01:00
Simon McVittie
2f38ec6521 Rename xdg-app-session.service to the recommended name
Using the bus name as the name of the service file is mandatory
for system services, and recommended for session services.

Signed-off-by: Simon McVittie <smcv@debian.org>
2016-01-28 23:45:03 +01:00
Simon McVittie
73b0adfe0a Hide non-public symbols from libglnx and libxdgapp-common
This avoids exporting glnx_*, calc_sizes(), etc. However, we do want to
export xdg_app_error_quark(), so do that.

Signed-off-by: Simon McVittie <smcv@debian.org>
2016-01-28 23:43:30 +01:00
Simon McVittie
bc451c567e Build top-level directory before building documentation
Otherwise, we try to scan a library that we haven't yet built.

Signed-off-by: Simon McVittie <smcv@debian.org>
2016-01-28 23:40:15 +01:00
Alexander Larsson
3a70dcf430 builder: Style fixes 2016-01-28 21:52:45 +01:00
Alexander Larsson
7defd88667 Merge pull request #104 from iBeliever/skip_disabled_submodules
builder: Skip checking out disabled submodules
2016-01-28 21:49:42 +01:00
Michael Spencer
ba5b5bc6b8 builder: Skip checking out disabled submodules 2016-01-28 12:46:40 -06:00
Alexander Larsson
a12bb89c9c utils: Fix nul termination of xdg_app_spawn output
The terminating zero byte was written after the output stream
was closed, so it never got added to the string.
2016-01-28 16:20:59 +01:00
Alexander Larsson
96d9204f86 helper: Update the error messages to not refer to --disable-userns 2016-01-28 14:38:59 +01:00
Alexander Larsson
225c359128 Fix include order to build with older libsoup versions 2016-01-28 14:35:46 +01:00
Alexander Larsson
a741ba418f Finish the optional xauth work 2016-01-28 14:34:22 +01:00
Alexander Larsson
927e3cab48 Make xauth use optional
This is not needed on some Xservers, and not if you're only building stuff.
So, lets make it optional.
2016-01-28 12:01:08 +01:00
Alexander Larsson
77ae6b1df0 lib: Fix up doc details 2016-01-28 11:37:35 +01:00
Alexander Larsson
fba7408d53 lib: Add some missing docs 2016-01-28 11:36:07 +01:00
Sam Thursfield
68c0e04adc Fix some misc. gtk-doc warnings 2016-01-28 11:26:29 +01:00
Sam Thursfield
66cdd7b197 Document the structs in libxdg-app 2016-01-28 11:26:12 +01:00
Sam Thursfield
dcf1df2454 Complete documentation for XdgAppInstallation 2016-01-28 11:25:50 +01:00
Sam Thursfield
5c847d54fa Avoid gtk-doc warnings: multiple ID for constraint linkend
This fixes the huge number of gtk-doc warnings that look like this:

    Warning: multiple "IDs" for constraint linkend: XdgAppRef

Based on:

    https://mail.gnome.org/archives/commits-list/2010-September/msg00222.html
2016-01-28 11:25:34 +01:00
Alexander Larsson
f8d502ad19 Require some way to set cgroup for apps (currently systemd --user)
When the portal looks up the peer app id it needs to know whether it
can trust that the cgroup path would be set, so that it can tell
whether the app is sandboxed or trusted. We used to check if the
cgroup was session-$uid.slice, and if so it was trusted, but this
failed in the case of per-user dbus (not per-session) where
e.g. gnome-terminal would be outside the session.

Now we just fail if we can't set up a cgroup, thus whenever the cgroup
path is not right we know that the app is trusted.
2016-01-28 11:15:58 +01:00
Alexander Larsson
6349b3ffc1 helper: Make user namespace support vs setuid a runtime, not build-time option
We now check at runtime if we have raised privs, and only if not so do we try
to use unprivileged user namespaces. This means you can build xdg-app however,
and then setuid/setcap the binary however you want afterwards.
2016-01-28 09:43:45 +01:00
Alexander Larsson
b8a4455e5c Merge pull request #101 from ssssam/doc-fixes
docs: Fix gtk-doc documentation
2016-01-27 17:46:10 +01:00