Commit Graph

624 Commits (132d1186d950f1743112ac4f0eff98e4d373e06a)
 

Author SHA1 Message Date
Alexander Larsson 132d1186d9 Initial version of libxdg-app
This is a highlevel library for working with xdg-app without using
the commandline interface. The primary usecase for this is for
creating a graphical frontend for app installation/update.
2015-12-03 22:41:16 +01:00
Alexander Larsson f2c9663169 ls-remote: Remove unnecessary code
Summary refs never have a remote prefix
2015-12-03 22:40:55 +01:00
Alexander Larsson e76da99cdc builder: Merge spawn helpers to single base helper 2015-12-03 13:29:08 +01:00
Alexander Larsson 9396419b66 Merge pull request #88 from murraycu/master
Docs: Fix some tiny typos
2015-12-02 15:57:09 +01:00
Alexander Larsson 3ce0c6f7f9 document portal: Add AddNamed method for host-side use
This is needed for the "save as" file selector portal
2015-12-02 15:55:41 +01:00
Murray Cumming 416704f65a Docs: Fix some tiny typos 2015-12-02 14:31:20 +01:00
Alexander Larsson 9fd6ce1779 builder: Don't use ":" in uri-as-filename
This confuses some versions of git, thinking the file is a uri
2015-12-02 14:07:09 +01:00
Alexander Larsson 44028aa273 builder: Error out if rename_error is set but not found
Also, ignore ENOENT during the traversal
2015-12-02 13:12:35 +01:00
Alexander Larsson 8dc06ba30c builder: Add support for copy-icon option 2015-12-02 08:47:43 +01:00
Alexander Larsson 7176ca491a builder: Consider the build_option when checksumming 2015-12-02 08:32:25 +01:00
Alexander Larsson 9dfcd4b452 builder: Fix build with g_autoptr backports 2015-12-01 16:40:45 +01:00
Alexander Larsson 5e96d10128 Fix some warnings 2015-12-01 16:39:01 +01:00
Alexander Larsson b172924669 Update libglnx for new backports 2015-12-01 16:34:04 +01:00
Alexander Larsson 83a59dd5a5 builder: Build with "make", not "make all"
This seems more compatible
2015-12-01 16:06:37 +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 6f9227d58f builder: Support building from a subdirectory of the sources 2015-12-01 12:12:53 +01:00
Alexander Larsson 4cd2e1c993 Add script source type 2015-12-01 11:10:13 +01:00
Alexander Larsson c78b736b23 builder: Add docs for post-install 2015-12-01 10:46:55 +01:00
Alexander Larsson 74e30c9b01 builder: Add post-install script support 2015-12-01 10:28:41 +01:00
Alexander Larsson d6ae9e3d6c builder: Add submodule support for git sources 2015-11-30 21:09:56 +01:00
Alexander Larsson 79c1f1246c Remove leftover semicolon 2015-11-30 21:09:22 +01:00
Alexander Larsson dd099f5769 builder: Fix typo in cmake support 2015-11-30 12:47:35 +01:00
Alexander Larsson 12d926ec65 builder: builddir != srcdir was broken becasue we never created the buildir 2015-11-27 10:23:17 +01:00
Alexander Larsson 2e0f34c435 builder: Add more headers around the spew for each new module 2015-11-27 10:23:17 +01:00
Alexander Larsson 56652c9ea1 builder: Add support for cmake and forced builddir 2015-11-27 10:23:14 +01:00
Alexander Larsson 106a5b06ec Rename lib/ to common/ in preparation for public xdg-app library 2015-11-26 22:05:38 +01:00
Alexander Larsson 49af288937 Add standard errors needed for portal 2015-11-26 19:18:58 +01:00
Alexander Larsson f4eefa7e04 Create xdg-app-info file in user runtime dir with effective state
This shows the name of the app, the runtime in use and the permissions
that the app has. This is useful for a client to know if e.g. it needs
to use a portal of some sort.
2015-11-26 19:15:49 +01:00
Alexander Larsson 47c705db03 portals: Only give blanket access to session-*.scope systemd cgroup
This way we won't give false positives if the user systemd session is
not running.
2015-11-26 17:37:46 +01:00
Alexander Larsson f5cadc018b Support defining read-only filesystem access
If you do something like "--filesystem=host:ro" you get a read-only mount
of the specified filesystem location.
2015-11-26 17:22:37 +01:00
Alexander Larsson 612bf0d08c xdg-app run: Fix support for --filesystem=~/dir
There was a typo here
2015-11-26 15:37:17 +01:00
Alexander Larsson a16f0251ad Remove unused helper function 2015-11-26 15:25:57 +01:00
Alexander Larsson f710eb9322 Correct license, we're LGPL 2+, not 3+
Some files accidentally got the LGPL 3+ header, but we
want to be LGPL2+.
2015-11-26 14:50:21 +01:00
Alexander Larsson 93d9d1fa0c xdg-app-builder: Update docs 2015-11-26 14:42:56 +01:00
Alexander Larsson 06062d4428 builder: Add --build-only argument 2015-11-26 14:38:13 +01:00
Alexander Larsson b2790349d6 Add xdg-app-builder
This is a tool that makes it easy to build applications and their
dependecies by automating the configure && make && make install steps.
2015-11-25 15:26:32 +01:00
Alexander Larsson 7e1a645f99 build: Set fs access before applying args so you can override it
With this applied you can do:
     xdg-app build  --nofilesystem=host --filesystem=/source/dir appdir
2015-11-25 13:43:37 +01:00
Alexander Larsson 787fdee634 Handle PWD env var correctly when spawning apps/builds
Propagate PWD to child, and use it (if correct) instead of getcwd
as the cwd and PWD in the child. This makes things nicer if the
PWD contains a symlink, as we avoid to resolve that symlink.
2015-11-25 13:43:22 +01:00
Alexander Larsson dcd17f82a5 Add autoptr cleanup backport for SoupUri 2015-11-25 12:39:41 +01:00
Alexander Larsson 7962be90f2 deploy: Explicitly pull from the origin
If the same branch has been pulled from multiple origins, pick the current
one. This could happen e.g. during update if you change the origin.
2015-11-16 08:25:47 +01:00
Alexander Larsson c6f4eccd04 lib: Export xdg_app_context_set_session_bus_policy 2015-11-11 11:26:03 +01:00
Alexander Larsson 452c5d38c1 Add xdg-app.pc file with variable for interfaces_dir 2015-11-11 11:26:03 +01:00
Alexander Larsson ff63e21073 Always make it possible to talk to the built in portals
Unless this is explicitly overrided, it should be safe for anyone
to access the portals. Thats the point of them after all.
2015-11-11 11:26:03 +01:00
Alexander Larsson d9a03f4f4d Drop dump-runtime command for now
This idea was not fully baked, so we should not expose it. We can
ressurect it later when we know better how this would be used.
2015-11-11 10:59:59 +01:00
Alexander Larsson 8cc65ba1b7 Add completion for bundle ops 2015-11-11 10:45:56 +01:00
Alexander Larsson 13b3f19acc Add install-bundle command 2015-11-11 09:38:39 +01:00
Alexander Larsson a418641892 add build-bundle command 2015-11-10 11:57:30 +01:00
Alexander Larsson 368eb5f304 utils: Add xdg_app_supports_bundles
This uses some hacks to check at runtime if ostree is new enough
to support making bundles.
2015-11-10 11:57:30 +01:00