Alexander Larsson
b85e7f0de7
Don't use a local child repo of the system one if root
...
This is unnecessary, and risks creating files as root in the users
home directory if run under sudo.
2016-05-24 09:55:50 +02:00
Alexander Larsson
578d2cc9cf
bwrap: Use --unshare-user-try
...
This makes the user ns optional, as it is not supported everywhere.
For instance Arch disables it by default.
2016-05-23 09:10:39 +02:00
Alexander Larsson
910328e535
Support no-deploy and no-pull via system helper
2016-05-20 13:30:50 +02:00
Alexander Larsson
24d4b60f60
Fix build if SCMP_ARCH_AARCH64 not defined
2016-05-20 11:07:34 +02:00
Alexander Larsson
e020803554
utils: remove_dangling_symlinks() - fix leak
...
We were not freeing the iterator.
2016-05-18 13:42:58 +02:00
Alexander Larsson
3d232bbe15
Merge pull request #161 from smcv/spelling
...
Fix various spelling mistakes
2016-05-17 17:51:20 +02:00
Alexander Larsson
b697a78dd3
system-helper: Support running unprivileged on session bus
...
This is only useful for testing.
2016-05-17 13:06:59 +02:00
Simon McVittie
a4641280a7
Fix various spelling mistakes
...
Mostly detected by Debian's Lintian tool.
Signed-off-by: Simon McVittie <smcv@debian.org >
2016-05-17 11:43:32 +01:00
Alexander Larsson
18992c2fa0
Look at FLATPAK_SYSTEM_DIR env var for default system dir
...
This is useful for testing
2016-05-17 11:55:41 +02:00
Alexander Larsson
251dcdb680
system-helper: Never use a system helper recursively
2016-05-17 11:54:44 +02:00
Tristan Van Berkom
b13fc460df
flatpak-run.c: Handle arm and aarch64 arches
...
Allows 32bit applications to run in the sandbox on a 64bit aarch64 host.
https://bugs.freedesktop.org/show_bug.cgi?id=95421
2016-05-16 16:28:55 +02:00
Alexander Larsson
d1d73bd2b2
run: Remove old seccomp arch code
...
There was a merge error when we switched to bubblewrap, this
code was replaced with the code that only adds the target
arch, but we forgot to remove this old code.
2016-05-16 10:45:27 +02:00
Alexander Larsson
90c909a932
Fix clang warnings
2016-05-13 16:26:47 +02:00
Alexander Larsson
1504f7bd7f
system-helper: Support add/modify/delete of remotes
2016-05-13 16:23:43 +02:00
Alexander Larsson
2875cdead5
remote-delete: Move to FlatpakDir and add checks for installed refs
...
You can't remove a remote unless you --force or there are no installs
from it.
2016-05-13 14:17:46 +02:00
Alexander Larsson
753cdc97fd
Fix typo: flatpak_dir_modify_remove -> flatpak_dir_modify_remote
2016-05-13 13:59:48 +02:00
Alexander Larsson
392f80a4aa
FlatpakDir: Add in-memory summary cache
...
Remote summary files are cached for 5 minutes.
2016-05-13 13:15:45 +02:00
Alexander Larsson
fa6e6c51ef
Duplicate ostree_repo_remote_list_refs in FlatpakDir
...
This way we can later add a local summary cache to it.
2016-05-13 11:32:40 +02:00
Alexander Larsson
0098164cd6
Register dbus errors for FLATPAK_ERROR
...
This allows us to transparently pass them from the system helper.
2016-05-12 22:03:42 +02:00
Alexander Larsson
29390fff39
Change portal error names to not contain Flatpak
2016-05-12 22:03:09 +02:00
Alexander Larsson
5407b8efc6
system-helper: Support uninstall
2016-05-12 21:23:36 +02:00
Alexander Larsson
3964504438
Fix triggers with installation dir on a symlink
2016-05-12 21:16:40 +02:00
Alexander Larsson
fe0a1be5f8
common: Add flags for flatpak_dir_uninstall
...
This is better than a list of booleans.
2016-05-12 19:52:48 +02:00
Alexander Larsson
c5e178f339
Use flatpak_dir_uninstall for app and lib
2016-05-12 17:18:14 +02:00
Alexander Larsson
712fc9fc08
Use the installed/not-installed errors more consequently
2016-05-12 17:17:27 +02:00
Alexander Larsson
2ef6d9d5d9
common: Remove FlatpakDirError in favour of FlatpakError from the lib
2016-05-12 16:43:16 +02:00
Alexander Larsson
e23bc2b7a6
Move flatpack_error quark to common so that the common code can use it
2016-05-12 16:33:48 +02:00
Richard Hughes
5ff8a00078
Show the error when we fail to build AppStream metadata
2016-05-12 11:07:30 +02:00
Alexander Larsson
14f58fc4b9
system-helper: Fix timeout setting
2016-05-12 09:14:30 +02:00
Alexander Larsson
9c01fb93aa
system-helper: Set infinite timeout when doing system-helper calls
2016-05-12 08:59:25 +02:00
Alexander Larsson
47bb7e2b2e
Don't fail if there is no user-dirs.dirs
...
Based on patch from tristan
https://bugs.freedesktop.org/show_bug.cgi?id=95339
2016-05-12 08:45:40 +02:00
Alexander Larsson
9e4bb25b2c
modify-remote: Move the actual config rewriting to FlatpakDir
...
This is in preparation for doing this in the system helper.
2016-05-11 15:43:40 +02:00
Alexander Larsson
e6f6959afb
run: Last fd issue???
2016-05-11 15:41:49 +02:00
Alexander Larsson
edcf485dde
run: More background fd issues fixed
...
This also simplifies the child_setup func by clearing CLOEXEC
on the needed fds.
2016-05-11 15:33:49 +02:00
Alexander Larsson
7d7e5c3bf9
run: Also keep the --args fd alive
2016-05-11 15:23:29 +02:00
Alexander Larsson
3f71025497
run: Fix running in the background
...
We need to keep all the fd:s needed for bubblewrap alive, so
neuter g_spawn_async:s close of fds and do our own.
Also, we need this so these fds can be closed in the launching app.
2016-05-11 15:14:11 +02:00
Alexander Larsson
4f6a2d5cd7
deploy: Ensure deploy dir is world readable
2016-05-11 13:55:33 +02:00
Alexander Larsson
4da7dc4742
appstream: Generate root dir of appstream branch world-readable
2016-05-11 12:23:55 +02:00
Alexander Larsson
1877f0be8d
system-helper: Add support for updating appstream branch
2016-05-11 10:35:24 +02:00
Alexander Larsson
d62127a437
run: Always cover /tmp/.X11-unix with an empty tmpfs
...
This way --filesystem=/tmp doesn't grant full access to the X sockets.
2016-05-10 10:53:24 +02:00
Alexander Larsson
4f9ea6bb57
Remove unused variables
...
This fixes warnings from clang
2016-05-09 12:49:54 +02:00
Alexander Larsson
5e9b247d26
Migrate ~/.local/share/xdg-app to ~/.local/share/flatpak
2016-05-09 12:21:28 +02:00
Alexander Larsson
8abbc0186e
Rename everything but the on-disk location to flatpak
2016-05-09 11:11:55 +02:00
Alexander Larsson
ba37b22d78
Rename library to libflatpak
2016-05-09 09:46:26 +02:00
Alexander Larsson
c24528d369
Rename source files to flatpak
2016-05-09 09:00:20 +02:00
Alexander Larsson
6a613d1fab
Rename all non-autogenerated symbols to flatpak
2016-05-09 09:00:20 +02:00
Alexander Larsson
1ffdf27d92
uncruftify: Initial run, all non-problematic changes
2016-05-06 16:03:27 +02:00
Alexander Larsson
de9fe1cb6a
common: Work around new glib codegen autogenerating g_autoptr support
...
glib master generates g_autoptr support, which causes a multiple
declaration conflict. We work around this by using a custom type.
2016-05-04 09:10:11 +02:00
Alexander Larsson
131961644d
Use the userspace arch as the default, not the kernel arch
...
Its not super uncommon to e.g. have a 64bit kernel with 32bit userspace.
So, we default to the arch xdg-app was built for, rather than what
uname reports (the kernel version).
2016-05-04 09:00:12 +02:00
Alexander Larsson
663cfcf3a8
Fix make check if uninstalled
...
This uses various environment variables set during make check
to find the trigger, bwrap and xdg-app-dbusproxy from the build/source dir
rather than the installed location.
2016-05-03 10:27:36 +02:00