Commit Graph

1428 Commits

Author SHA1 Message Date
Alexander Larsson
7e4d838011 completion: Fix completion for xdg-app run
This was broken because run didn't take --user or --system
2015-12-10 11:28:54 +01:00
Alexander Larsson
2afc3349b1 completion: Fix completion of apps/runtimes in a remote
The name of the commandline operation changed to ls-remotes.
2015-12-10 11:15:51 +01:00
Alexander Larsson
2c92fcb1d6 builder: After fetching the mirrored git repo, set back the right origin
This is nice if you want to later pull new data into the repo.
2015-12-09 21:32:18 +01:00
Alexander Larsson
873492af62 builder: Remove accidental leftover spew 2015-12-09 21:21:48 +01:00
Alexander Larsson
54c52d9363 builder: Add --keep-build-dirs option
This is useful if you want to later make changes to the built stuff.
2015-12-09 21:10:22 +01:00
Alexander Larsson
b716e0d8eb Builder: Add a resolved version of the manifest to the built app 2015-12-09 14:26:41 +01:00
Alexander Larsson
dfc11d5e87 builder: Support specifying commit ids as git branches 2015-12-09 14:07:33 +01:00
Alexander Larsson
6a82dd4ee3 builder: Support specifying revision in bzr sources 2015-12-09 14:06:59 +01:00
Alexander Larsson
5b6f3749d5 builder: Support data: uri for files 2015-12-09 13:00:30 +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
3fdfef7e40 builder: Allow optionally specifying remote file sources 2015-12-09 12:01:55 +01:00
Alexander Larsson
e39192b3d6 builder: Break out download_uri helper function in SourceFile 2015-12-09 11:42:04 +01:00
Alexander Larsson
3fb4226c81 builder: Make the builder manifest objects serializable to json 2015-12-09 10:33:54 +01:00
Alexander Larsson
f7b20fad85 common: Make XdgAppDir soup session initilization threadsafe 2015-12-08 15:28:11 +01:00
Alexander Larsson
237fd57cd0 builder: Allow git uris to be relative to the base directory
This allows you to use ".git" as the git uri, thus building from the
current source directory.
2015-12-08 14:34:34 +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
8d576298ca lib: Minor indentation cleanups 2015-12-08 11:02:32 +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
ef93bd8d15 lib: Fix declaration of xdg_app_installed_ref_load_metadata
We changed this to not be const
2015-12-07 16:36:08 +01:00
Alexander Larsson
0fe5f6552a lib: Add XdgAppDir to RemoteRef private 2015-12-07 16:35:53 +01:00
Alexander Larsson
d987501e02 lib: Always load installed ref metadata each time
This is needed in case it changes over time.
2015-12-07 16:31:01 +01:00
Alexander Larsson
188bb00b1b lib: xdg_app_remote_fetch_ref_sync
For now this downloads the summary file each time.
2015-12-07 16:17:06 +01:00
Alexander Larsson
6558c812af lib: Add some more debug spew to test-lib 2015-12-07 16:16:43 +01:00
Alexander Larsson
eca699ca5a lib: Rename xdg_app_remote_list_refs to xdg_app_remote_list_refs_sync 2015-12-07 16:16:02 +01:00
Alexander Larsson
a8a7b28ce9 lib: Add remote_name to XdgAppRemoteRef 2015-12-07 16:14:52 +01:00
Alexander Larsson
5b1931dc8d lib: Add xdg_app_installed_ref_launch() 2015-12-07 13:36:39 +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
6c999147c4 Add XdgAppRemoteRef do docs 2015-12-04 20:22:57 +01:00
Alexander Larsson
09f7842e78 Merge pull request #91 from ebassi/api-reference
Generate the API reference for libxdg-app
2015-12-04 20:17:12 +01:00
Emmanuele Bassi
f23090a615 Generate the API reference for libxdg-app
We use the good old gtk-doc.
2015-12-04 15:00:35 +00:00
Alexander Larsson
a4df4ff811 lib: Add XdgAppRemoteRef subclass
This doesn't do anything yet, but its a place to hang remote-specific
ops off.
2015-12-04 15:35:13 +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
5fd830d3b0 lib: Make getters for XdgAppRemote return copies of strings for options
This makes it possible to handle the case when these options change
over time.
2015-12-04 11:46:32 +01:00
Alexander Larsson
1ba476bcbe Merge pull request #90 from ebassi/introspection
Introspection
2015-12-04 11:42:47 +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
Emmanuele Bassi
c09375c855 Annotate transfer rules for ambiguous return values
This silences all the warnings from the introspection scanner.
2015-12-04 10:17:39 +00: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
Emmanuele Bassi
52ba736518 Add introspection support to libxdg-app
We may want to use it from non-C languages.
2015-12-04 09:55:40 +00:00
Alexander Larsson
2f6fc54897 lib: Use the new remote helpers 2015-12-04 10:49:16 +01:00
Alexander Larsson
4cdec26264 list/ls-remotes: Use the new remote helpers 2015-12-04 10:48:26 +01:00
Alexander Larsson
5bc44ea125 XdgAppDir: Add some helpers for handling remotes 2015-12-04 10:48:05 +01:00
Emmanuele Bassi
92885b9ce2 Add introspection check 2015-12-04 09:36:30 +00:00
Alexander Larsson
ab7699bb04 builder: Prune old branches when updating mirror 2015-12-04 08:51:14 +01:00