Alexander Larsson
6af6d629a2
Initial work on pulling to a child repo
2016-04-25 18:59:17 +02:00
Alexander Larsson
fee5d4d169
XdgAppDir: Add xdg_app_dir_pull_untrusted_local helper
2016-04-25 18:59:17 +02:00
Alexander Larsson
ac517099eb
utils: Add xdg_app_allocate_tmpdir
2016-04-25 18:59:17 +02:00
Alexander Larsson
4261057e2a
common: Don't use singletons for the system/user XdgAppDirs
...
Without this we never finalize them and can't e.g. remote temporary
files.
2016-04-22 08:55:41 +02:00
Alexander Larsson
7d509ab93a
Fix confusion about GError types
...
This was pretty mixed up. Also XdgAppError was not exported.
2016-04-21 20:59:30 +02:00
Alexander Larsson
d314df07c1
Add xdg_app_dir_deploy_install helper
2016-04-21 20:59:26 +02:00
Alexander Larsson
91eda8919e
common: Move duplicated code into xdg_app_dir_deploy_update
2016-04-21 20:19:01 +02:00
Alexander Larsson
21dd53d1ff
common: Set ~/.local/share/xdg-app/system-cache as cache dir for system repo
...
This means we can use a summary cache for system wide stuff which causes
loads to be faster.
2016-04-21 18:54:15 +02:00
Alexander Larsson
351c2d5bd2
Read system remotes from /etc/xdg-app/remotes.d/*.conf
2016-04-21 18:47:11 +02:00
Alexander Larsson
29458bc154
Remove support for older ostree without bundle support
...
This is not needed when we depend on 2016.5
2016-04-21 18:34:28 +02:00
Alexander Larsson
af03d2f5b4
Remove unused local variables reported by clang
2016-04-21 09:48:56 +02:00
Alexander Larsson
1838b1e9da
common: Fix warning due to get_user_dir_from_string return type change
2016-04-21 09:39:55 +02:00
Alexander Larsson
4575d07661
run: Always consider xdg-* valid even when not configured
...
Before we would claim e.g. xdg-videos as invalid if the user didn't
configure the videos user directory.
2016-04-20 14:26:03 +02:00
Alexander Larsson
5392f2d629
common: Break out xdg_app_mtree_create_root helper
2016-04-20 09:55:13 +02:00
Alexander Larsson
1c1bc4acca
common: Move xdg_app_dir_pull_from_bundle to xdg_app_pull_from_bundle
...
The only difference is it takes an OstreeRepo, not a XdgAppDir, so we
can use it at a lower level too.
2016-04-19 13:31:55 +02:00
Alexander Larsson
3d7d9ece93
Fix warning
2016-04-14 22:12:25 +02:00
Alexander Larsson
167564b637
common: Add xdg_app_dir_remote_fetch_summary
...
This is in preparation for adding a cache for the summary
2016-04-14 20:04:51 +02:00
Alexander Larsson
b06528e0ef
Merge pull request #127 from matthiasclasen/bus-logging
...
Bus logging
2016-04-14 19:30:57 +02:00
Alexander Larsson
1dd993cad6
lib: Add new cache based getters for metadata and size
2016-04-14 19:29:40 +02:00
Alexander Larsson
664fb128e7
utils: Remove unused helper
2016-04-14 19:29:18 +02:00
Alexander Larsson
ca9bfc99b8
Use string for metadata cache
2016-04-14 19:18:11 +02:00
Matthias Clasen
4283473b38
Add options to enable bus logging
...
This can be useful to find out what bus names your app
is actually talking to, so you can set up a bus policy
that is narrowed than blanket access without breaking
your application.
2016-04-14 10:01:42 -04:00
Alexander Larsson
8d4393a7aa
build-update: Add installed/download size and metadata cache to summary
2016-04-14 13:53:24 +02:00
Alexander Larsson
3187c0c142
appstream: Don't create new commit for unchanged appstream branch
2016-04-14 11:57:13 +02:00
Alexander Larsson
9ba4030564
Fix crash
2016-04-12 16:19:31 +02:00
Alexander Larsson
ba0363bd2a
Handle empty subpaths
2016-04-12 16:17:58 +02:00
Alexander Larsson
3cc45ccf13
Add support for subpath limited installs
...
This allows you to install e.g. org.freedesktop.Platform.Locale
but only the /sv subdir, and replaces using separate branches for
each locale.
2016-04-07 20:36:53 +02:00
Alexander Larsson
4beaa990c2
Don't ostree pull while deploying
...
This makes no sense, callers should be calling xdg_app_dir_pull() before
2016-04-06 16:57:31 +02:00
Alexander Larsson
33e09be5c9
helper: Use 64bit capset/capget versions
...
This fixed kernel warnings about 32bit capabilities APIs on some distros.
2016-03-30 10:23:07 +02:00
Alexander Larsson
762d1a6295
seccomp: Allow running the target arch
...
This adds the app target arch to the list of the allowed arches
in seccomp. It also allows the native arch, because otherwise
xdg-app-helper can't run.
This means that if your userspace (i.e. xdg-app-helper) is built in
64bit mode, then 64bit apps can't run 32bit apps. However, if you're
running a 32bit app it is allowed to run both 32bit and 64bit apps.
Not ideal, but at least the common case is safer.
2016-03-24 21:04:01 +01:00
Alexander Larsson
c25786ffa1
seccomp: Always try to do the socket filtering, but don't fail if not supported
...
This is better than guessing if it will work before.
However, we need to add the rule with _rule_add_exact, or it can try
to do something else which breaks the app.
2016-03-24 21:04:01 +01:00
Alexander Larsson
5ce0184cc7
Support endianness markers in bundle files
2016-03-24 11:04:23 +01:00
Giovanni Campagna
b4de1f15a7
Extract icons for all appstream components
...
Not just the one with the name exactly matching the app id
2016-03-21 19:07:36 -07:00
Alexander Larsson
1b1e8c26a2
Prefer non-subdir extensions over subdir ones.
...
This allows us to have e.g. org.*.Locale that contains *all* the locales.
2016-03-21 16:37:51 +01:00
Alexander Larsson
f031650e2d
Don't unnecessarily grow the buffer when loading files.
2016-03-14 16:21:55 +01:00
Alexander Larsson
56f0ffcb2b
Avoid warning about refing null GVariant
2016-03-14 14:26:05 +01:00
Alexander Larsson
2f01bb3aaa
Don't enumerate noenumerate remotes
2016-03-14 09:51:36 +01:00
Alexander Larsson
765c0af2fe
Ensure that the .ref file is always replaced
...
We need a unique inode in the deploy dir, if it is hardlinked the file
lock will be shared.
2016-03-02 11:03:51 +01:00
Thibault Saunier
8aa1effe26
Force /bin/sh as a shell
...
https://bugs.freedesktop.org/show_bug.cgi?id=94333
2016-03-02 09:50:41 +01:00
Alexander Larsson
26c2bb1b81
lib: Add xdg_app_bundle_ref_get_installed_size()
2016-02-25 21:34:44 +01:00
Alexander Larsson
ef14c9f8db
common: Add and use xdg_app_appstream_xml_root_to_data
2016-02-25 19:38:08 +01:00
Alexander Larsson
7ac2722800
common: Add xdg_app_read_stream helper
2016-02-25 19:34:04 +01:00
Alexander Larsson
73defceec6
common: Break out xml appstream rewriting to helper functions
2016-02-25 18:26:40 +01:00
Alexander Larsson
c84ebe0440
Support --filesystem=xdg-run/foo
2016-02-25 17:11:37 +01:00
Alexander Larsson
26cd90e100
Allow specifying subdir of xdg dir, like: --filesytem=xdg-download/subdir
2016-02-25 16:51:45 +01:00
Alexander Larsson
6c5e1a8a92
Fix some compiler warning (unused vars)
2016-02-25 16:09:49 +01:00
Alexander Larsson
382ae396b3
lib: Add xdg_app_installation_install_bundle
2016-02-25 16:05:13 +01:00
Alexander Larsson
eadb10cba7
common: Move part of bundle install to helper functions
2016-02-25 11:31:22 +01:00
Alexander Larsson
cbf3d25440
Remove unused variable
2016-02-24 14:33:00 +01:00
Alexander Larsson
4c6a05aba1
common: Break out bundle loader to helper utility
2016-02-24 14:16:52 +01:00