Alexander Larsson
b2790349d6
Add xdg-app-builder
...
This is a tool that makes it easy to build applications and their
dependecies by automating the configure && make && make install steps.
2015-11-25 15:26:32 +01:00
Alexander Larsson
7e1a645f99
build: Set fs access before applying args so you can override it
...
With this applied you can do:
xdg-app build --nofilesystem=host --filesystem=/source/dir appdir
2015-11-25 13:43:37 +01:00
Alexander Larsson
787fdee634
Handle PWD env var correctly when spawning apps/builds
...
Propagate PWD to child, and use it (if correct) instead of getcwd
as the cwd and PWD in the child. This makes things nicer if the
PWD contains a symlink, as we avoid to resolve that symlink.
2015-11-25 13:43:22 +01:00
Alexander Larsson
dcd17f82a5
Add autoptr cleanup backport for SoupUri
2015-11-25 12:39:41 +01:00
Alexander Larsson
7962be90f2
deploy: Explicitly pull from the origin
...
If the same branch has been pulled from multiple origins, pick the current
one. This could happen e.g. during update if you change the origin.
2015-11-16 08:25:47 +01:00
Alexander Larsson
c6f4eccd04
lib: Export xdg_app_context_set_session_bus_policy
2015-11-11 11:26:03 +01:00
Alexander Larsson
452c5d38c1
Add xdg-app.pc file with variable for interfaces_dir
2015-11-11 11:26:03 +01:00
Alexander Larsson
ff63e21073
Always make it possible to talk to the built in portals
...
Unless this is explicitly overrided, it should be safe for anyone
to access the portals. Thats the point of them after all.
2015-11-11 11:26:03 +01:00
Alexander Larsson
d9a03f4f4d
Drop dump-runtime command for now
...
This idea was not fully baked, so we should not expose it. We can
ressurect it later when we know better how this would be used.
2015-11-11 10:59:59 +01:00
Alexander Larsson
8cc65ba1b7
Add completion for bundle ops
2015-11-11 10:45:56 +01:00
Alexander Larsson
13b3f19acc
Add install-bundle command
2015-11-11 09:38:39 +01:00
Alexander Larsson
a418641892
add build-bundle command
2015-11-10 11:57:30 +01:00
Alexander Larsson
368eb5f304
utils: Add xdg_app_supports_bundles
...
This uses some hacks to check at runtime if ostree is new enough
to support making bundles.
2015-11-10 11:57:30 +01:00
Alexander Larsson
e65ca6a18f
Update to 0.4.5
2015-11-04 16:10:16 +01:00
Alexander Larsson
d3b207a0d6
Create custom /etc/passwd and /etc/group with minimal content
...
There is no particular reason to leak the entire host passwd and group
files, as only the users uid/gid is mapped anyway. If fact, injecting
the tty group while also not being allowed to chmod the pty to that group
will make grantpt() fail.
2015-10-26 17:23:31 +01:00
Christian Hergert
f06a09b0f9
helper: unblock SIGCHILD before execvp() of child
...
We don't want to block SIGCHILD from being handled by the child process,
as that could be necessary for g_child_watch_add(), waitpid(), or similar.
2015-10-26 09:07:04 +01:00
Christian Hergert
f83224c948
helper: match whitespace to other options
2015-10-26 09:07:04 +01:00
Christian Hergert
14bd531121
helper: give xdg-app process access to /dev/ptmx
...
This is needed for posix_openpt() to locate the proper ptmx path. We can
just symlink into /dev/pts/ptmx which is already in the mount namespace.
2015-10-26 09:07:04 +01:00
Christian Hergert
ed6867fe68
build-export: add human readable format to "Content Bytes Written"
...
It's nice to get a general idea of the size quickly from the build-export
command without counting the number of digits.
2015-10-26 09:07:04 +01:00
Alexander Larsson
64d7c00045
Move dbus invocation peer app detection to lib/
2015-10-21 10:23:37 +02:00
Alexander Larsson
3a47f0b282
Install dbus introspection files
2015-10-21 09:52:55 +02:00
Alexander Larsson
6e1c211a5c
Correct capitalization on dbus interface filename
2015-10-21 09:48:53 +02:00
Alexander Larsson
477de4c217
Always remove all leftover app/runtime traces on uninstall
...
Even if there is no deploy directory we make sure to remove any
refs with the same name in the repo, and purge the repo.
2015-10-19 10:41:47 +02:00
Alexander Larsson
9855ac23b4
utils: Add xdg_app_decompose_ref()
2015-10-19 10:41:47 +02:00
Alexander Larsson
a4ff61526c
uninstall: Don't fail if there is no origin
...
This could happen if we install from a bundle with no origin
2015-10-19 10:41:47 +02:00
Alexander Larsson
7c4898cbb2
document-portal: Fix warning
...
We need to return something from main()
2015-10-06 10:12:19 +02:00
Alexander Larsson
607e3b1849
Always regenerate summary after export-build
2015-10-05 13:05:15 +02:00
Alexander Larsson
c26510295f
helper: Also copy extra symlinks from /
2015-10-05 11:24:40 +02:00
Alexander Larsson
dbc92635cc
helper: Correctly zero terminate symlink targets
2015-10-05 11:24:26 +02:00
Alexander Larsson
3499f3bfe9
docs: Fix whitespace issues
2015-10-05 11:13:52 +02:00
Alexander Larsson
7791ea130f
build-export: Add support for signing build
2015-10-05 11:13:36 +02:00
Alexander Larsson
dda045d808
Update for 0.4.4 release
2015-10-02 09:55:34 +02:00
Alexander Larsson
208eb7b1aa
Propagate Xauthority details to the sandbox if X11 is enabled
...
Some xservers out there (like xorg 1.17.1) have a broken server interpreted
local xauth, which causes apps to fail to connect to the xserver.
This fixes that by propagating Xauthority data such as the MIT-MAGIC-COOKIE-1.
2015-10-01 21:23:23 +02:00
Alexander Larsson
eedbeab9d0
helper: Handle existing mounts with escaped characters
2015-10-01 18:59:32 +02:00
Alexander Larsson
cf5050126e
fuse: Disable entry cache to work around race condition
2015-10-01 18:02:13 +02:00
Alexander Larsson
c66f09b6b6
build-export: Strip out uid/gid and xattrs
...
These are not important anyway as we ignore them on checkout.
2015-09-30 12:48:50 +02:00
Colin Walters
b337fc7621
build: Fix srcdir != builddir from git
...
Was hitting this in gnome-continuous, which does srcdir != builddir by
default.
2015-09-29 23:26:06 +02:00
Alexander Larsson
82071b2cb8
Bump version to 0.4.3
2015-09-29 16:15:27 +02:00
Alexander Larsson
8cd95d2621
Make sure we build against older ostree (without gpg import)
...
This means we work on the f22 ostree version at least.
2015-09-29 16:12:37 +02:00
Alexander Larsson
279558b6bf
cleanup: Simplify code using xdg_app_fail
2015-09-28 16:54:24 +02:00
Alexander Larsson
472a71cdc3
cleanup: Remove unused variables
2015-09-28 16:42:14 +02:00
Alexander Larsson
e4920a8e7e
cleanup: Remove trivial use of goto out
2015-09-28 16:40:19 +02:00
Alexander Larsson
b25830d8f9
Add xdg-app dump-runtime command
...
This creates a tar of the runtime as set up by xdg-app
2015-09-28 10:48:47 +02:00
Alexander Larsson
7af7d61fa0
Make usage_error return FALSE
...
This allows us to shorten code when returning these errors.
2015-09-25 17:36:38 +02:00
Alexander Larsson
b08f650b07
Add --nofilesystem commandline arg
2015-09-25 17:04:50 +02:00
Alexander Larsson
dc6c6826ab
utils: Add xdg_app_fail
2015-09-25 17:04:32 +02:00
Alexander Larsson
26458d8da2
Release 0.4.2.1
2015-09-25 11:47:27 +02:00
Alexander Larsson
e45d0a7d46
Fix regression is dbus proxy
2015-09-25 10:53:59 +02:00
Alexander Larsson
64dae1d7db
Accept -d as --show-details in all commands that support it
2015-09-25 09:28:49 +02:00
Alexander Larsson
423c1131d8
Update to 0.4.2
2015-09-24 21:40:07 +02:00