Alexander Larsson
1fa367199a
Allow overriding XDG_APP_BINDIR using make vars
2016-02-11 13:36:34 +01:00
Alexander Larsson
767b89cd71
Revert "When rewriting Exec lines, don't use full bindir"
...
This is not right, dbus service files need an absolute path.
This reverts commit 23cd97a919
.
2016-02-11 13:31:05 +01:00
Alexander Larsson
23cd97a919
When rewriting Exec lines, don't use full bindir
...
This breaks for instance when installing an app from inside a sandbox,
or when installing it with an out-of-tree xdg-app build that would not
necessary be used later. Instead rely on the PATH to pick up the right one.
2016-02-11 11:30:41 +01:00
Alexander Larsson
fc986d7814
helper: If stdout is a tty, mount tty as /dev/console
...
This means ttyname() works in the sandbox. We already have access
to the tty via stdin, so this will not elevate privs.
2016-02-10 14:48:56 +01:00
Alexander Larsson
ea176cd63a
builder: Put all builds in a .xdg-app-builder/build subdir
...
I.e. instead of .xdg-app-builder/build-foo it will be
.xdg-app-builder/build/foo. This makes it easier to separate these
out, and it allows you to symlink this directory to /run/build to pick
up all sources when you use --keep-build-dirs.
2016-02-10 10:15:25 +01:00
Alexander Larsson
93006c5a40
Update exports on uninstall via library too
2016-02-09 16:17:02 +01:00
Alexander Larsson
0c9d1538c9
Add option to disable sandbox triggers
...
This is not something you should normally do, but the gnome-software
app needs this, as recursive sandboxes don't work.
2016-02-09 15:02:56 +01:00
Alexander Larsson
5dfc59ee02
Pass location of exports to triggers as arg1
...
This changes nothing but is a preparation for later changes
2016-02-09 14:50:35 +01:00
Alexander Larsson
0bfb064030
Update exports on uninstall too
2016-02-09 14:50:20 +01:00
Alexander Larsson
0a916c1dee
Release 0.4.11
2016-02-09 11:50:53 +01:00
Alexander Larsson
51fcc6e281
install: Fix assertion on runtime install
2016-02-09 11:48:33 +01:00
Alexander Larsson
7704d27d14
Updated for release
2016-02-09 10:35:39 +01:00
Alexander Larsson
8f6e6c0dab
Make sure we export files during install
...
is_data was never set to true, so we didn't run the exports
during install.
2016-02-09 10:32:36 +01:00
Alexander Larsson
9c6d6242a9
builder: Avoid reusing set GError
...
my_error was used twice, without clearing inbetween, which can
cause issues.
2016-02-08 16:21:28 +01:00
Alexander Larsson
32e9502675
Fix some g_propagate_error typos
2016-02-08 16:16:38 +01:00
Alexander Larsson
955d165cf2
Bump version to 0.4.9
2016-02-08 14:28:06 +01:00
Alexander Larsson
22522c2ac6
Make arches canonical
...
Mostly we just pass on the uname() machine, but for arm, x86
and mips we need some special handling.
2016-02-08 12:52:46 +01:00
Alexander Larsson
1cc94f4f04
builder: Use predictable names for build dirs
...
Instead of random hex, we use a pure counter
2016-02-08 11:30:48 +01:00
Alexander Larsson
dd1e967b60
Don't export app-info files
...
Also, pick up the non-exported files when updating the appdata branch
2016-02-08 10:19:30 +01:00
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
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