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
Alexander Larsson
03905e181a
build-init: Also use the new cp_a for sdk extensions
2016-01-22 11:58:35 +01:00
Alexander Larsson
47fb77ec45
common: fix handling of no_chown in xdg_app_cp_a
2016-01-22 11:58:00 +01:00
Alexander Larsson
c2eea29cde
build-init: Don't copy uid/gid when initializing a writable sdk
...
This is not permitted if the sdk is system installed.
2016-01-22 11:45:01 +01:00
Alexander Larsson
b099dc7021
common: Add xdg_app_cp_a
2016-01-22 11:43:58 +01:00
Alexander Larsson
33fba3c67e
xdg-app-utils: Add autocleanup for GZlib*
2016-01-22 10:55:01 +01:00
Alexander Larsson
22ec9837bf
build: When using a writable /usr, don't use runtime extensions
...
These are readonly and writes there will fail. Instead you need
to pass the --sdk-extensions you want explicitly to build-init.
2016-01-22 10:34:47 +01:00
Alexander Larsson
64da5f5602
utils: Extract the xml helpers
2016-01-21 21:37:29 +01:00
Alexander Larsson
455d3a7b29
build-update-repo: Update the appstream using a GMarkup parser on the app-info files
2016-01-21 21:16:37 +01:00
Alexander Larsson
8d0d4636c5
build-finish: Export app-info, not appdata
2016-01-21 17:11:22 +01:00
Alexander Larsson
42f069dd5f
lib: Add xdg_app_ref_parse
2016-01-20 17:11:14 +01:00
Alexander Larsson
8da9d592ba
appstream: Add timestamp which is updated each time the appstream is pulled
2016-01-20 15:14:01 +01:00
Alexander Larsson
472405ff7f
builder: Add platform-extensions
2016-01-20 14:41:09 +01:00
Alexander Larsson
6d2aa7b29e
builder: Support sdk-extensions
2016-01-20 14:11:29 +01:00
Alexander Larsson
022b9876f7
build-init: Add --sdk-extension
2016-01-20 14:00:53 +01:00
Alexander Larsson
bc892f1745
run: Use the new xdg_app_list_extensions helper
2016-01-20 14:00:49 +01:00
Alexander Larsson
d959ed016c
common: Add xdg_app_list_extensions util
2016-01-20 14:00:49 +01:00
Alexander Larsson
622adf88d0
builder: Put debuginfo in the right place for runtimes
2016-01-20 14:00:49 +01:00
Alexander Larsson
df44834b0c
Revert "lib: Allow passing NULL for remote name in update_appstream"
...
This reverts commit 9a185947a3
.
This was problematic wrt how partial errors are reported
2016-01-19 22:06:06 +01:00
Alexander Larsson
c6df1665a6
appstream: Don't try to remove old appstream if it doesn't exist
2016-01-19 22:05:16 +01:00
Alexander Larsson
9a185947a3
lib: Allow passing NULL for remote name in update_appstream
2016-01-19 21:59:43 +01:00
Alexander Larsson
0b8515ac07
update-appstream: Don't fail badly if remote has not appstream branch
2016-01-19 21:58:44 +01:00
Alexander Larsson
388d3ce500
lib: update_appstream - work around main context issue
2016-01-19 18:57:19 +01:00
Alexander Larsson
6189fd3f7a
build-finish: Fix exports
...
This was reading an unintialized variable
2016-01-19 16:53:11 +01:00
Alexander Larsson
1d89c2fcab
lib: Add xdg_app_remote_get_appstream_dir
2016-01-19 15:18:44 +01:00
Alexander Larsson
2bede34952
lib: Add getter for installed size on InstalledRef
2016-01-19 15:05:06 +01:00
Alexander Larsson
1a4f257cbd
builder: Remove leftover debug spew
2016-01-19 13:08:15 +01:00
Alexander Larsson
2f3e790651
builder: Fix error with va_start use
2016-01-19 12:38:16 +01:00
Alexander Larsson
2abe3ff911
Fix possible read of uninitialized variable
2016-01-19 12:38:03 +01:00
Alexander Larsson
071561637a
Remove unused variables
2016-01-19 12:37:51 +01:00
Alexander Larsson
2c08cdc4e0
override: Fix warning
2016-01-19 12:32:04 +01:00
Alexander Larsson
9e8ca412f5
build-update-repo: Add --prune and --prune-depth options
2016-01-19 12:26:45 +01:00