Josh Soref
da0d6f052d
spelling: running
2016-05-27 06:46:11 +00:00
Josh Soref
56e61e6a4a
spelling: deployments
2016-05-27 06:39:17 +00:00
Alexander Larsson
1d8408e381
uninstall: When uninstalling the current branch, make other version current (if any)
2016-05-26 20:03:51 +02:00
Alexander Larsson
c48272c6db
uninstall: Default to whatever branch is installed
2016-05-26 19:08:46 +02:00
Alexander Larsson
bf294fb7c5
install: Be smarter about choosing the default branch name
...
We look for any matching ref on the remote and use that if there is a single match.
2016-05-26 19:06:51 +02:00
Alexander Larsson
33c0d49212
builder: Support permission ops with --run
2016-05-26 12:24:43 +02:00
Alexander Larsson
bde6fa52dc
build: Handle setting LD_LIBRARY_PATH when bwrap is setuid
...
We need to pass LD_LIBRARY_PATH as --setennv, because the setuid
helper strips that. We did this already for run, but this moves it
so its used by build too.
2016-05-26 09:43:56 +02:00
Alexander Larsson
282709d9ec
Fix resolv.conf in "flatpak build"
...
This regressed when we moved to bubblewrap. We need to always use
a direct bind for building, because it may not necessarily happen
in a real user session where the session-helper works.
2016-05-25 16:38:50 +02:00
Alexander Larsson
3703837336
run: Don't crash if referencing an xdg-dir that is not configured
2016-05-25 14:12:36 +02:00
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