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
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
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
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
73b0adfe0a
Hide non-public symbols from libglnx and libxdgapp-common
...
This avoids exporting glnx_*, calc_sizes(), etc. However, we do want to
export xdg_app_error_quark(), so do that.
Signed-off-by: Simon McVittie <smcv@debian.org>
2016-01-28 23:43:30 +01:00
Alexander Larsson
a12bb89c9c
utils: Fix nul termination of xdg_app_spawn output
...
The terminating zero byte was written after the output stream
was closed, so it never got added to the string.
2016-01-28 16:20:59 +01:00
Alexander Larsson
96d9204f86
helper: Update the error messages to not refer to --disable-userns
2016-01-28 14:38:59 +01:00
Alexander Larsson
225c359128
Fix include order to build with older libsoup versions
2016-01-28 14:35:46 +01:00
Alexander Larsson
a741ba418f
Finish the optional xauth work
2016-01-28 14:34:22 +01:00
Alexander Larsson
927e3cab48
Make xauth use optional
...
This is not needed on some Xservers, and not if you're only building stuff.
So, lets make it optional.
2016-01-28 12:01:08 +01:00
Alexander Larsson
f8d502ad19
Require some way to set cgroup for apps (currently systemd --user)
...
When the portal looks up the peer app id it needs to know whether it
can trust that the cgroup path would be set, so that it can tell
whether the app is sandboxed or trusted. We used to check if the
cgroup was session-$uid.slice, and if so it was trusted, but this
failed in the case of per-user dbus (not per-session) where
e.g. gnome-terminal would be outside the session.
Now we just fail if we can't set up a cgroup, thus whenever the cgroup
path is not right we know that the app is trusted.
2016-01-28 11:15:58 +01:00
Alexander Larsson
6349b3ffc1
helper: Make user namespace support vs setuid a runtime, not build-time option
...
We now check at runtime if we have raised privs, and only if not so do we try
to use unprivileged user namespaces. This means you can build xdg-app however,
and then setuid/setcap the binary however you want afterwards.
2016-01-28 09:43:45 +01:00
Alexander Larsson
4671149722
update-repo: Escape text when writing xml
2016-01-25 13:13:24 +01:00
Alexander Larsson
4eb7b14996
update-appstream: Fix crash in case there are no 128x128 icons
2016-01-24 21:26:40 +01:00
Alexander Larsson
a95c99270a
Move the GZlib* autoptr backport to libglnx
2016-01-22 15:30:48 +01:00
Alexander Larsson
a7b2f05a6a
dir: Properly finish OstreeAsyncProgress objects
2016-01-22 15:12:05 +01:00
Alexander Larsson
85aef6666e
XdgAppDir: Make sure we always constole end status lines that we start
2016-01-22 15:01:09 +01:00
Alexander Larsson
47fb77ec45
common: fix handling of no_chown in xdg_app_cp_a
2016-01-22 11:58:00 +01:00
Alexander Larsson
b099dc7021
common: Add xdg_app_cp_a
2016-01-22 11:43:58 +01:00
Alexander Larsson
33fba3c67e
xdg-app-utils: Add autocleanup for GZlib*
2016-01-22 10:55:01 +01:00
Alexander Larsson
64da5f5602
utils: Extract the xml helpers
2016-01-21 21:37:29 +01:00
Alexander Larsson
455d3a7b29
build-update-repo: Update the appstream using a GMarkup parser on the app-info files
2016-01-21 21:16:37 +01:00
Alexander Larsson
8da9d592ba
appstream: Add timestamp which is updated each time the appstream is pulled
2016-01-20 15:14:01 +01:00
Alexander Larsson
bc892f1745
run: Use the new xdg_app_list_extensions helper
2016-01-20 14:00:49 +01:00
Alexander Larsson
d959ed016c
common: Add xdg_app_list_extensions util
2016-01-20 14:00:49 +01:00
Alexander Larsson
c6df1665a6
appstream: Don't try to remove old appstream if it doesn't exist
2016-01-19 22:05:16 +01:00
Alexander Larsson
0b8515ac07
update-appstream: Don't fail badly if remote has not appstream branch
2016-01-19 21:58:44 +01:00
Alexander Larsson
2bede34952
lib: Add getter for installed size on InstalledRef
2016-01-19 15:05:06 +01:00
Alexander Larsson
071561637a
Remove unused variables
2016-01-19 12:37:51 +01:00
Alexander Larsson
24ec8445a3
override: Fix error if override file doesn't already exist
2016-01-19 12:09:54 +01:00
Alexander Larsson
6e204a4d2e
Add support to gpg sign summaries and appstream
2016-01-18 21:36:57 +01:00
Alexander Larsson
de7e19e40f
The plural of appdata is appstream
2016-01-18 21:06:42 +01:00
Alexander Larsson
d114069b8a
XdgAppDir: Document some args to xdg_app_dir_fetch_sizes
2016-01-15 16:06:26 +01:00
Alexander Larsson
51e9fa2b8d
build-update-repo: Add --appdata update option
2016-01-15 15:59:22 +01:00
Alexander Larsson
cd2c5af974
build-repo-update: Update appdata branch using appdata-builder
2016-01-15 14:39:11 +01:00
Alexander Larsson
a79ea2e890
common: Add XdgAppTempDir which cleans up temporary directories
2016-01-15 12:04:46 +01:00
Alexander Larsson
cb971722fe
Better handling of the title in the summary
...
Now we store the title in the repo config and re-apply it every time
we regenerate the summary.
2016-01-14 21:26:51 +01:00
Alexander Larsson
839c5ca885
XdgAppDir: Add helper to fetch the size info for a commit
2016-01-14 16:45:28 +01:00
Alexander Larsson
f7a1fdaa99
xdg-app: Deprecate install/update/uninstall-app/runtime
...
We just have install/updata/uninstall and have --app and --runtime
options if you really want to specify the type. Otherwise we just
automatically chose the right thing.
2016-01-13 15:34:08 +01:00
Alexander Larsson
a241610793
helper: Align help output
2016-01-12 11:21:14 +01:00
Alexander Larsson
5c578946bf
helper: Allow specifying initial cwd
2016-01-12 10:39:03 +01:00
Alexander Larsson
b60e81271e
helper: Add missing arguments to usage output
2016-01-12 10:33:43 +01:00
Alexander Larsson
1934562ca2
run: Be more flexible with --runtime option, and add --runtime-version
...
This makes it easier to experiment with running an app with a
different runtime.
2016-01-12 09:57:20 +01:00
Alexander Larsson
5a905d913c
helper: Print nicer error messages when user namespaces don't work.
2016-01-12 09:33:55 +01:00
Alexander Larsson
e2b347ba76
run: Fix support for app extensions
2016-01-11 15:34:54 +01:00
Alexander Larsson
b4fbb84f0a
common: Move path_match_prefix to common
2016-01-11 13:56:07 +01:00
Alexander Larsson
6ddee9905b
build-export: Add --runtime commit support
2015-12-21 15:38:42 +01:00
Alexander Larsson
d99c4f6568
XdgAppDir: Remove leftover spew
2015-12-21 13:21:01 +01:00
Alexander Larsson
cd490d12a7
XdgAppDir: Touch .changes file each time something changes
2015-12-21 11:12:25 +01:00
Alexander Larsson
ea543c8f93
lib/app: Add support for repo priorities
...
New repos default to prio 1, bundle repos default to prio 0.
Listing repos returns in sorted order, with add order as secondary
sort key.
2015-12-21 10:28:15 +01:00
Alexander Larsson
e87e2b7736
common: Add xdg_app_dir_read_latest helper
2015-12-18 11:54:12 +01:00
Alexander Larsson
dd210ed6cc
app: Use space, not tab to delimit columns
...
Tabs were using way to much space
2015-12-18 11:18:24 +01:00
Alexander Larsson
f9b9f70fad
common: Add xdg_app_strcmp0_ptr and use it in all g_ptr_array_sort calls
2015-12-18 10:41:34 +01:00
Alexander Larsson
874fce2b77
lib: Move app launching to XdgAppInstallation
2015-12-17 20:34:25 +01:00
Alexander Larsson
67de92042b
apps: Use "branch", not "version" when talking about app branches
2015-12-17 20:07:14 +01:00
Alexander Larsson
8b5208a995
Add lock file for each xdg-app dir.
...
This protects the stuff outside the repo (such as deploys, exports,
active checkout, current branch, etc). However, we rely on ostree
concurrency handling for handling concurrent pulls and prunes.
For reading (e.g. list-apps, etc), we don't do any locking, as these
all writes are essentially updated atomically (last change is atomic) and
any once you return such information it could be out of date anyway.
2015-12-15 16:20:28 +01:00
Alexander Larsson
856c8210a9
lib: Add custom GError codes
2015-12-15 15:27:37 +01:00
Alexander Larsson
be4f0d86d8
common: Add and use xdg_app_dir_deploy_update()
2015-12-15 15:21:00 +01:00
Alexander Larsson
b820249178
common: Add xdg_app_compose_ref helper
2015-12-15 14:55:29 +01:00
Alexander Larsson
6cdbf400b2
lib: Add xdg_app_dir_undeploy_all and xdg_app_dir_remove_ref helpers
2015-12-15 14:36:17 +01:00
Alexander Larsson
3dc56a65de
helper: Properly unescape strings
2015-12-15 14:35:18 +01:00
Alexander Larsson
43a09b3646
Fix unused variable warnings
2015-12-15 14:34:52 +01:00
Alexander Larsson
9285d055ab
lib: Add xdg_app_installation_install
2015-12-15 12:26:59 +01:00
Alexander Larsson
f8e9b74d1f
XdgAppDir: Add set_origin helper function
2015-12-15 09:25:02 +01:00
Alexander Larsson
5b21b48084
common: Fix compiler warning when built with --disable-userns
2015-12-15 08:46:53 +01:00
Alexander Larsson
f16cc44a30
builder: Use SoupRequest to simplify download helpers
...
Also, this allows us to support data: uris, etc
2015-12-09 12:55:10 +01:00
Alexander Larsson
f7b20fad85
common: Make XdgAppDir soup session initilization threadsafe
2015-12-08 15:28:11 +01:00
Alexander Larsson
4177f358cb
common: Make it explicit that XdgAppError are portal errors
2015-12-08 12:16:38 +01:00
Alexander Larsson
a28ced36c7
lib: Add xdg_app_installation_load_app_overrides()
2015-12-08 11:48:22 +01:00
Alexander Larsson
a62f64d265
lib: Add xdg_app_remote_ref_fetch_metadata_sync helper
...
This does direct soup access on the repo. Not ideal, but good for now.
2015-12-08 11:01:13 +01:00
Alexander Larsson
000c59f60e
xdg_app_run_app: Handle error == NULL
2015-12-07 13:34:50 +01:00
Alexander Larsson
8e26dec0d9
helper: Mount dconf run dir writable, as dconf needs this.
2015-12-07 13:34:11 +01:00
Alexander Larsson
67e52e8278
common: Clean up xdg_app_run_app()
...
This breaks things out into helper functions to make things easier
to read.
2015-12-07 13:04:45 +01:00
Alexander Larsson
03ae229751
Move most of builtins-run to xdg_app_run_app helper
...
This is in preparation for letting the library start apps.
2015-12-07 12:27:53 +01:00
Alexander Larsson
d503c5a15d
Remove unused variable
2015-12-07 12:27:29 +01:00
Alexander Larsson
b761aa05a7
common: Move typedef to separate header to avoid circular deps
2015-12-07 12:26:44 +01:00
Alexander Larsson
ad7310f246
XdgAppDeploy: Fix wrong types in finalizer
2015-12-07 12:25:48 +01:00
Alexander Larsson
1647c85d6f
helper: Allow exec on the tmpfs.
...
This should be safe, you could always copy it to your writable
directory and exectute from there instead. There should be no way
to get increased privileges from a simple exec anyway.
2015-12-04 12:19:41 +01:00
Alexander Larsson
ad7b379398
Add no-enumerate flag to remote and set if for bundle origin remotes
2015-12-04 11:40:51 +01:00
Alexander Larsson
704300e1b4
Add xdg_app_dir_fetch_remote_title and remote old custom summary fetcher
2015-12-04 11:09:00 +01:00
Alexander Larsson
5bc44ea125
XdgAppDir: Add some helpers for handling remotes
2015-12-04 10:48:05 +01:00
Alexander Larsson
e76da99cdc
builder: Merge spawn helpers to single base helper
2015-12-03 13:29:08 +01:00
Alexander Larsson
e35241ba35
Merge pull request #86 from murraycu/patch-1
...
xdg-app-utils: Correct SoupUri -> SoupURI typo.
2015-12-01 15:10:36 +01:00
Murray Cumming
4a91447307
xdg-app-utils: Correct SoupUri -> SoupURI typo.
...
It should be SoupURI, not SoupUri:
https://developer.gnome.org/libsoup/stable/SoupURI.html#soup-uri-new
This broke the build for me.
2015-12-01 14:01:43 +01:00
Alexander Larsson
a8eefe6844
Remove stray semicolons
2015-12-01 12:31:20 +01:00
Alexander Larsson
106a5b06ec
Rename lib/ to common/ in preparation for public xdg-app library
2015-11-26 22:05:38 +01:00