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
Sam Thursfield
f3f6ca8ddf
docs: Fix gtk-doc documentation
...
We need to explicitly tell gtk-doc about the XDG_APP_EXTERN macro,
otherwise it will ignore all of the function definitions.
Full docs are now produced. There are plenty of warnings which can be
fixed later.
2016-01-27 16:45:55 +01:00
Alexander Larsson
4671149722
update-repo: Escape text when writing xml
2016-01-25 13:13:24 +01:00
Alexander Larsson
cafc7fbba8
Bump version to 0.4.7
2016-01-25 10:39:20 +01:00
Alexander Larsson
65d089f994
Update NEWS for release
2016-01-25 10:39:03 +01:00
Alexander Larsson
4eb7b14996
update-appstream: Fix crash in case there are no 128x128 icons
2016-01-24 21:26:40 +01:00
Alexander Larsson
7940a773ef
Always build libxmlapp
2016-01-22 22:19:52 +01:00
Alexander Larsson
20d16625a8
builder: support using appstream-compose to create appstream files
2016-01-22 15:33:03 +01:00
Alexander Larsson
a95c99270a
Move the GZlib* autoptr backport to libglnx
2016-01-22 15:30:48 +01:00
Alexander Larsson
7f05ac562c
update: Make both branch and name optional
...
We know what is installed, so we just update everything
that you don't specify the details for.
2016-01-22 15:21:20 +01:00
Alexander Larsson
f363fddd32
lib: Properly finishe OstreeAsyncProgress objects
2016-01-22 15:14:36 +01:00
Alexander Larsson
a7b2f05a6a
dir: Properly finish OstreeAsyncProgress objects
2016-01-22 15:12:05 +01:00
Alexander Larsson
85aef6666e
XdgAppDir: Make sure we always constole end status lines that we start
2016-01-22 15:01:09 +01:00
Alexander Larsson
e8adcc0eb5
builder: Add spew when commiting to cache
2016-01-22 14:08:43 +01:00
Alexander Larsson
5c89d5a4e9
builder: Add some spew before build-init
2016-01-22 12:30:00 +01:00
Alexander Larsson
62c0d3ad3d
build-export: Never export files you can't read
...
It makes no sense to have these in a runtime or an app, it just
causes issues.
2016-01-22 12:21:49 +01:00