Matthias Clasen
2c463d3751
Warn about extra arguments in flatpak build-import-bundle
2016-09-27 14:30:11 +02:00
Matthias Clasen
6cde704f0c
Warn about extra arguments in flatpak build-init
2016-09-27 14:30:11 +02:00
Matthias Clasen
4bb8a2e0b6
Warn about extra arguments in flatpak build-sign
2016-09-27 14:30:11 +02:00
Matthias Clasen
e8b05a2fa6
Warn about extra arguments in flatpak remote-ls
2016-09-27 14:30:11 +02:00
Matthias Clasen
0274bffac3
Warn about extra arguments in flatpak build-export
2016-09-27 14:30:11 +02:00
Matthias Clasen
a9e6542354
Warn about extra arguments in flatpak document-unexport
2016-09-27 14:30:11 +02:00
Matthias Clasen
fe5a4d724a
Warn about extra arguments in flatpak document-list
2016-09-27 14:30:11 +02:00
Matthias Clasen
e1a4e46650
Warn about extra arguments in flatpak document-info
2016-09-27 14:30:11 +02:00
Matthias Clasen
c9bac3611f
Warn about extra arguments in flatpak document-export
2016-09-27 14:30:11 +02:00
Matthias Clasen
361e90bdaa
Warn about extra arguments in flatpak make-current
2016-09-27 14:30:11 +02:00
Matthias Clasen
4c0df29123
Warn about extra arguments in flatpak uninstall
2016-09-27 14:30:11 +02:00
Matthias Clasen
cc82fd6da6
Warn about extra arguments in flatpak update
2016-09-27 14:30:11 +02:00
Matthias Clasen
902eae0ac6
Warn about extra arguments in flatpak install
2016-09-27 14:30:11 +02:00
Matthias Clasen
34e7158faf
Warn about extra arguments in flatpak build-bundle
2016-09-27 14:30:11 +02:00
Matthias Clasen
6e679c4277
Warn about extra arguments in flatpak override
2016-09-27 14:30:11 +02:00
Matthias Clasen
23872464a0
Warn about extra arguments in flatpak info
2016-09-27 14:30:11 +02:00
Matthias Clasen
85f2f36baf
Warn about extra arguments in flatpak remote-add
2016-09-27 14:30:11 +02:00
Matthias Clasen
689bd242d1
Warn about extra arguments in flatpak remote-delete
2016-09-27 14:30:11 +02:00
Matthias Clasen
ab2280fa5c
Warn about extra arguments in flatpak remote-list
2016-09-27 14:30:11 +02:00
Matthias Clasen
1e05119b63
Warn about extra arguments in flatpak list
2016-09-27 14:30:11 +02:00
Matthias Clasen
3d1f385148
Port remote-ls to FlatpakTablePrinter
...
This helps with consistent formatting.
2016-09-27 14:22:12 +02:00
Alexander Larsson
0501e1569c
commit-from: Add "xa.commit-from" to the destination metadata
...
This is nice because it guarantees that we get a new commit id
which fixes various issues we had with conflicting commit ids
overriding each others signatures.
2016-09-27 12:39:44 +02:00
Alexander Larsson
8fa7f7fe09
Add --ostree-verbose
...
This enables debug logging for OSTree
2016-09-27 11:37:11 +02:00
Matthias Clasen
0e9125619c
Improve an error message
...
When the build directory does not exist or looks uninitialized
in flatpak build, report a helpful message that points at
flatpak build-init.
2016-09-24 16:04:04 -04:00
Matthias Clasen
39e29f7cb1
Mention the commands to run in error messages
...
When complaining that a build directory has not been initialized
or finalized, mention the commands to do so.
2016-09-24 11:04:16 -04:00
Mario Sanchez Prada
0f005e7939
Fix typo and use the right function to get the system installation
2016-09-16 13:27:38 +00:00
Alexander Larsson
dcfef2d29d
install: Fix option args for --from
...
This doesn't have any args, since its type ARG_NONE.
This was causing commandline completion to add an "=" after --from
which isn't right.
2016-09-15 11:44:11 +02:00
Sebastian Rasmussen
b21f4bf542
Prefer g_strerror() to strerror()
...
It handles encodins better, is thread-safe and more portable.
2016-09-15 01:22:54 +08:00
Alexander Larsson
14a11943bb
update: Make --appstream work again
...
We need to handle opt_appstream before we try to parse the
given name as an app.
2016-09-14 16:22:55 +02:00
Matthias Clasen
06c7aca9f9
Make flatpak_is_valid_branch set a GError
...
Return detailed information about the problem with the branch in
the GError. Update all callers.
2016-09-13 13:28:42 -04:00
Timm Bäder
f4bf8eb955
build-export: Add missing \n to g_print calls
2016-09-13 09:39:36 +02:00
Matthias Clasen
b2b281e485
Make flatpak_is_valid_name set a GError
...
Return detailed information about the problem with the name in
the GError. Update all callers.
2016-09-12 23:25:54 -04:00
Alexander Larsson
fba645a999
Remove unused local variables reported by clang
2016-09-12 11:11:35 +02:00
Alexander Larsson
7bd8bd472e
Merge pull request #288 from muelli/sign
...
build-sign: fix short help message
2016-09-12 08:43:17 +02:00
Alexander Larsson
71500ae5ec
Add support for .flatpakref files
...
These are similar to .flatpakrepo, but for a single app.
For example, if you have a file gedit.flatpakref with this:
[Flatpak Ref]
Title=GEdit
Name=org.gnome.gedit
Branch=stable
Url=http://sdk.gnome.org/repo-apps/
IsRuntime=False
GPGKey=mQENBFUUCGcBCAC/K9WeV4xCaKr3NKRqPXeY5mpaXAJyasLqCtrDx92WUgbu0voWrhohNAKpqizod2dvzc/XTxm3rHyIxmNfdhz1gaGhynU75Qw4aJVcly2eghTIl++gfDtOvrOZo/VuAq30f32dMIgHQdRwEpgCwz7WyjpqZYltPAEcCNL4MTChAfiHJeeiQ5ibystNBW8W6Ymf7sO4m4g5+/aOxI54oCOzD9TwBAe+yXcJJWtc2rAhMCjtyPJzxd0ZVXqIzCe1xRvJ6Rq7YCiMbiM2DQFWXKnmYQbj4TGNMnwNdAajCdrcBWEMSbzq7EzuThIJRd8Ky4BkEe1St6tuqwFaMZz+F9eXABEBAAG0KEdub21lIFNESyAzLjE2IDxnbm9tZS1vcy1saXN0QGdub21lLm9yZz6JATgEEwECACIFAlUUCGcCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEArkz6VV0VKBa5cH/0vXa31YgEjNk78gGFXqnQxdD1WYA87OYxDi189l4lA802EFTF4wCBuZyDOqdd5BhS3Ab0cR778DmZXRUP2gwe+1zTJypU2JMnDpkwJ4NK1VP6/tE4SAPrznBtmb76BKaWBqUfZ9Wq1zg3ugvqkZB/Exq+usypIOwQVp1KL58TrjBRda0HvRctzkNhr0qYAtkfLFe0GvksBp4vBm8uGwAx7fw/HbhIjQ9pekTwvB+5GwDPO/tSip/1bQfCS+XJB8Ffa04HYPLGedalnWBrwhYY+G/kn5Zh9L/AC8xeLwTJTHM212rBjPa9CWs9C6a57MSaeGIEHLC1hEyiJJ15w8jmY=
You can then install gedit with
flatpak install --from gedit.flatpakref
2016-09-09 16:50:32 +02:00
Alexander Larsson
65a1ba186f
bundles: Support updating from a bundle
...
Now:
flatpak install --bundle $file
Will update the bundle if its already installed.
2016-09-09 14:54:38 +02:00
Tobias Mueller
f75e5d117d
build-sign: fix short help message
2016-09-08 15:35:02 +02:00
Alexander Larsson
352e761c0e
run: Run dbus proxy under bubblewrap
...
This has two advantages. First of all (and most important) it
lets us put a /.flatpak-info file in it, so that the dbus peers
it talks to have the right "source" app id and sandboxed status.
Secondly, it lets us run the bus with readonly access to things,
thus being somewhat more secure.
2016-09-08 11:21:00 +02:00
Alexander Larsson
5bf37574f1
flatpak-info: Flatten the metadata to make it more easy to parse
...
The info file is always standalone, as it never needs to stack on top
of another context. This means we can remove all "negative" attributes
such as "shared=!network", making it easier to parse this file.
2016-09-07 14:32:10 +02:00
Alexander Larsson
e1ad3a7a3c
flatpak-info: Add application branch info
...
Note: This is only available in flatpak run, not flatpak build, where
this info is not available.
2016-09-07 12:31:56 +02:00
Alexander Larsson
0fc06022c8
flatpak-info: Add runtime path
2016-09-07 12:19:13 +02:00
Alexander Larsson
e256bf7570
remote-add: Make internal function static
2016-09-06 15:40:11 +02:00
Alexander Larsson
3b90b00e39
build: Export a $XDG_RUN_DIR/flatpak-info file from flatpak build too
...
This way we know if we're in a sandbox or not even at build time,
and things like portal pickup etc, works.
2016-09-05 11:54:12 +02:00
Alexander Larsson
a5536d0420
update: Don't stop the entire update if one app fails
2016-09-01 11:45:27 +02:00
Alexander Larsson
e18ab46977
build-update-repo: Add some spew before starting the prune operation
...
This makes it more obvious what is happening, and which part is slow.
2016-08-29 12:06:16 +02:00
Alexander Larsson
874a67c721
Update: Don't double-call flatpak_dir_cleanup_removed
...
This is already called automatically from flatpak_dir_deploy_update.
In particular, in the system-installed case this will cause
a warning due to not being able to remove the old checkout with
permission denied.
2016-08-29 11:48:30 +02:00
Alexander Larsson
d069ee808b
builder: Make more of the validation warnings instead of errors
...
We don't want builds to break due to these, as we update flatpak
on the build servers. Also, use g_print instead of g_warning to
print the warnings.
2016-08-25 11:30:10 +02:00
Alexander Larsson
e966d56543
Remove unwanted static deltas after summary is updated
2016-08-24 14:54:29 +02:00
Alexander Larsson
54c5f9a59e
Allow specifying partial refs as name in commands
...
The commands: install, update, uninstall, info, make-current and run
now supports specifying a partial ref for the name. This is a different
way of specifying optional arch and branch arguments.
For instance org.app.App//master is the same as "org.app.App master" or
"--branch=master org.app.App".
This is useful if you're cutting and pasting from e.g. the list -d output.
2016-08-24 09:18:00 +02:00
Alexander Larsson
23c1c22266
commit-from: Support specifying multiple refs
...
You can list refs, or specify none to mean every source ref
2016-08-23 16:13:04 +02:00
Alexander Larsson
0a3ca96da0
Add --no-update-summary to export, commit-from and import-bundle
...
We want this for e.g. the build system where we will do multiple
repo operations and then atomically regenerate the summary once.
2016-08-23 15:12:27 +02:00
Alexander Larsson
6386ea3222
build-import-bundle: Update repo similarly to build-export
...
This makes sure we update the summary, as well as take args for
gpg keys and whether to update the appstream branch.
2016-08-23 14:57:08 +02:00
Alexander Larsson
783cfce518
repo-update: Better static delta creation
...
We now do the creation of static deltas in parallel, and we
also remove unneeded static deltas.
2016-08-23 10:49:54 +02:00
Alexander Larsson
6578d37984
Drop libgsystem dependency
2016-08-22 16:00:33 +02:00
Alexander Larsson
be8dae4693
Convert to glxn_* console helpers instead of gs_*
2016-08-22 15:08:59 +02:00
Alexander Larsson
fcffefee26
Replace openat() calls from libgsystem
2016-08-22 14:12:31 +02:00
Alexander Larsson
b8a5a0092c
build-init: Use flatpak_cp_a instead ofgs_shutil_cp_a
2016-08-22 13:59:00 +02:00
Alexander Larsson
65f1cf993d
Create and use flatpak_file_get_path_cached
...
This is simpler that the one in libgs, as well as lockless. Also, it
removes one more use of libgs.
2016-08-22 10:22:42 +02:00
Alexander Larsson
9c907c992d
Replace gs_shutil_rm_rf with small helper wrapper over libglnx
2016-08-22 10:06:08 +02:00
Alexander Larsson
e0bd22bfe8
Add flatpak_mkdir_p helper and use it
...
This replaces all current callers of gs_file_ensure_directory with
equivalent code.
Actually, two instances were calling gs_file_ensure_directory with
FALSE, i.e. error out on EEXIST, but those cases seem fine with the
do-nothing-if-exists semantics.
2016-08-22 09:29:24 +02:00
Alexander Larsson
1976639153
flatpak: Add build-commit-from command
...
This creates new commits based on a different repo/branch. Very useful
to e.g. import and sign verified correct commits from an autobuilder
repo.
2016-08-19 17:24:03 +02:00
Alexander Larsson
6d7427f1f7
Simplify appstream branch generation error messages
...
This removes references to spawning appstream-builder, which we don't
call anymore.
2016-08-19 16:50:59 +02:00
Alexander Larsson
bbf0a57589
build-export: Only warn for Exec lines that are not found
...
There are various cases where this is ok. For instance to start
a binary in the runtime, such as in:
https://github.com/flatpak/flatpak/issues/260
2016-08-19 15:58:15 +02:00
Alexander Larsson
db67edcc98
Fix validation of service files
...
We need to rewrite /app absolute paths just like we do for
desktop files.
2016-08-19 10:47:40 +02:00
Alexander Larsson
92d9d9e4dc
Update: Fix crashed when updating runtimes
...
The debug spew were looking for the "current" ref, but there is
no such thing for runtimes, only apps.
2016-08-17 15:32:11 +02:00
Alexander Larsson
c978377dd1
build-export: Don't fail desktpo validation for absolute pathnames in Exec=
2016-08-11 13:02:20 +02:00
Bastien Nocera
1bd1c73429
build: Better description for --runtime option
...
"non-devel runtime" isn't an expression in the Flatpak vocabulary, so
explain what it really does.
2016-08-06 16:43:47 +02:00
matthiasclasen
fe133c7204
Merge pull request #233 from matthiasclasen/reduce-icon-validation
...
Reduce icon validation
2016-08-04 18:45:39 -04:00
Matthias Clasen
d4fd5738f7
flatpak update: Improve output
...
Print out if an update did not do anything, and generally
improve the output.
2016-08-04 18:41:57 -04:00
Matthias Clasen
eaebfd8cc2
Remove a misleading error message
...
NAME is not, in fact, required.
2016-08-04 18:39:11 -04:00
Matthias Clasen
8124016247
flatpak update: fail if not installed
...
Print a diagnostic and fail if the application or runtime
does not exist in flatpak update.
2016-08-04 15:48:45 -04:00
Matthias Clasen
ecb3000e2e
Reduce icon validation
...
While it is frowned upon nowadays, there are still applications
that use system-provided icons for the Icon field in their desktop
file.
Reduce the error to a warning to allow this for now.
2016-08-04 07:49:36 -04:00
Matthias Clasen
b42bc359f6
Validate exports in build-export
...
Do some basic validation of the exported desktop files, service
files and icons.
Suggested by Bastien Nocera.
2016-07-29 18:41:25 -04:00
Matthias Clasen
75218c4a65
Fix license headers
...
We were referring to the nonexisting "version 2" of the
Lesser GPL. It should be "version 2.1".
2016-07-29 14:27:49 -04:00
Alexander Larsson
003ef9ee2e
Revert "Set up logging to the journal"
2016-07-29 00:24:43 +02:00
Matthias Clasen
003d96e3df
Add an --arch option to flatpak list
...
This enables filtering by arch when listing installations.
2016-07-26 13:39:57 -04:00
Matthias Clasen
a60f18c183
Add a --journal option to flatpak run
...
The --journal option takes one of the values yes, no, auto.
2016-07-25 10:36:00 -04:00
Matthias Clasen
40ae16ffeb
Consistency fixes
...
Don't append a newline to flatpak_fail messages, we don't do that
in most places.
2016-07-23 14:42:58 -04:00
Matthias Clasen
8732c5a8fb
Translate errors
...
These show up in the UI and often refer to (translated) parts of
the UI.
2016-07-23 14:37:02 -04:00
Matthias Clasen
ad34562383
Translate main context summary
...
We need to use the translations, not just mark the strings
for extraction.
2016-07-23 11:20:28 -04:00
Matthias Clasen
43da58db5f
Mark commandline options for translations
2016-07-23 11:01:50 -04:00
Alexander Larsson
51663de427
Remove unused variables
2016-07-01 14:45:53 +02:00
Alexander Larsson
5ab628d0ee
Install/update/uninstall related refs
...
Any "related" references from the same remote are automatically
handled when installing, unless you specify --no-related.
The set of related refs is based on the declared extensions for
the main ref. By default, all such extensions are automatically
installed/updated unless they have "no-autodownload" set to false
in the extension info, and its not already installed locally.
Only extensions marked as "autodelete" will be automatically deleted
when you remove the main ref.
There is some special handling:
Any *.Debug or *.Locale extension is automatically treated as "autodelete".
A *.Locale extension that is autodownloaded will be subsetted using subpaths
such that existing subpaths are kept, and the current locale is added.
2016-06-30 16:55:32 +02:00
Alexander Larsson
853227a3d6
extensions: Minor cleanup
...
We now store the path to the extension files in the FlatpakExtension
returned from list_extensions instead of having each called look
them up.
2016-06-29 12:20:16 +02:00
Simon McVittie
ee99e8afff
Add BWRAP and --with-system-bubblewrap configure arguments
...
This lets distributors share a system copy of bubblewrap (>= 0.1.0)
between Flatpak and any other projects that benefit from it, if they are
careful to keep new versions in sync. The default is still to use the
bundled submodule, ensuring compatibility and simplifying dependencies.
Enable $PATH search everywhere that runs bwrap, so that $BWRAP doesn't
necessarily need to be a fully-qualified path.
Signed-off-by: Simon McVittie <smcv@debian.org>
2016-06-26 11:09:03 +01:00
Alexander Larsson
640bf9e69c
remote-ls: Better multiarch support
...
By default, only show supported refs. Use --arch to limit it
to a specific arch, or --arch=* to list all.
2016-06-23 13:08:12 +02:00
Alexander Larsson
db192586de
make-current: Use find_installed_ref()
...
This means you don't have to specify the arch if you don't want.
It will still find supported apps.
2016-06-23 12:54:45 +02:00
Alexander Larsson
2966b25ba0
update: Always look at all existing apps when updating
...
Currently if you specified some of branch/name we used
find_installed_ref, but even in that case we want to
support updating two arches.
2016-06-23 11:36:51 +02:00
Alexander Larsson
8740a9ded3
Add flatpak --supported-arches
2016-06-23 11:12:28 +02:00
Matthias Clasen
9c16751709
flatpak: Add a command to list exported documents
...
This lists all the files that are exported, possibly limited
to a single app id.
2016-06-16 15:05:18 -04:00
Matthias Clasen
8281e614ce
flatpak: Add a way to revoke privileges for exported documents
...
This adds --forbid-read, --forbid-write, --forbid-delete and
--forbid-grant-permissons options to flatpaks document-export
command, to let it revoke permissions on exported documents.
2016-06-16 15:05:18 -04:00
Matthias Clasen
528b1f8e29
flatpak: Add a document-unexport command
...
This calls org.freedesktop.portal.Documents.Delete to remove
an exported file from the document database altogether.
2016-06-16 15:05:18 -04:00
Matthias Clasen
52d32da215
flatpak: Add a document-info command
...
This uses the newly introduced non-portal interface to the
documents portal to obtain and show information about an
exported file.
2016-06-16 15:05:18 -04:00
Matthias Clasen
04d444782c
Make variables static
...
Otherwise, they cause unexpected linking conflicts.
2016-06-15 14:07:36 -04:00
Matthias Clasen
98a66ce6d8
Rename export-file to document-export
...
This fits better with the naming scheme for commands in general, and
will let us add more document portal related commands in the future.
2016-06-15 14:07:36 -04:00
Matthias Clasen
0d2b3ec5d0
flatpak enter: Add completion
...
This was the last command without completion, so we're complete!
2016-06-10 01:09:51 -04:00
Matthias Clasen
de967dfb5b
flatpak enter: Stop parsing context options
...
We don't make any use of these options, and the documentation
does not mention them either, so stop accepting them.
2016-06-10 01:07:07 -04:00
Matthias Clasen
302dbd2910
Trivial whitespace fix
2016-06-10 00:54:04 -04:00
Matthias Clasen
7cdb8c386c
completion: Ensure --help options show up
...
Help was not showing up in completions, which is unfortunate.
2016-06-10 00:47:20 -04:00
Alexander Larsson
cfef57e343
Properly handle subpaths on update
2016-06-07 22:12:51 +02:00
Alexander Larsson
8ef84cc3d1
Move shared bundle install code to flatpak_dir_install_bundle
2016-06-03 14:30:25 +02:00
Alexander Larsson
7e58da35af
remote-add: Support remote-add --from=keyfile NAME
...
This allows you to have a single file that describes a repo.
It also allows a mimetype handle for it so that you can easily
install it via a single click.
2016-05-31 16:26:59 +02:00
Alexander Larsson
bd7cf1af93
install: Better check for pre-existing installation
...
We need an actual active installation, not just the base directory.
This caused a failure if the user had tried to install and app but the
installation failed. After that installation failed due to it claiming
to be installed, while uninstall failed due it it *not* being
installed.
2016-05-30 16:35:50 +02:00
Alexander Larsson
8533f06dc0
Add more completions
2016-05-30 14:54:22 +02:00
Alexander Larsson
4e3149e88d
Properly show the help in case of no command or unknown command
2016-05-27 16:48:10 +02:00
Alexander Larsson
eeaa832095
Replace bash completion shell script with C-based version
...
This doesn't do everything yet, but its got the basics covered.
2016-05-27 16:30:13 +02:00
Alexander Larsson
9ec3e7346b
main: Report unknown command before unknown arg
...
This fixes: https://github.com/flatpak/flatpak/issues/23
2016-05-26 19:48:25 +02:00
Alexander Larsson
22adaa3c8c
info: Default to whatever branch is installed
2016-05-26 19:08:46 +02:00
Alexander Larsson
0b4241b0e5
update: Don't exist on first failure when there are multiple updates
2016-05-26 19:08:42 +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
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
Stephan Bergmann
3b6b0da108
exec* returns -1 on error
...
...so use the == -1 idiom as already used in common/flatpak-run.c
(another fix would be to drop the if completely, as exec* doesn't
return on success)
2016-05-24 17:44:33 +02:00
Tristan Van Berkom
501802270e
flatpak-builtins-update.c: Fixed loading of arch option
...
Code was organized in such a way that the --arch option
was being ignored.
https://bugs.freedesktop.org/show_bug.cgi?id=95489
2016-05-19 12:43:01 +02:00
Alexander Larsson
b24aff6580
Remove unused variables
2016-05-16 16:25:09 +02:00
Alexander Larsson
4a8a225447
remote-delete: Actually look at --force flag
2016-05-13 16:23:13 +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
e5649ead07
Fix debug spew with -v
2016-05-12 21:16:18 +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
Richard Hughes
c35395185b
Actually update the branch when using --update-appstream
2016-05-12 11:07:30 +02:00
Alexander Larsson
12ac77138e
add-remote: Support metalink=.. urls
2016-05-11 16:31:33 +02:00
Alexander Larsson
984e850fd6
remote-add: Use flatpak_dir_modify_remove
2016-05-11 16:27:43 +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
fcf137f25d
Remove references to --gpg-key= as it never worked
2016-05-11 15:39:11 +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
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
4f9ea6bb57
Remove unused variables
...
This fixes warnings from clang
2016-05-09 12:49:54 +02:00
Alexander Larsson
5e9b247d26
Migrate ~/.local/share/xdg-app to ~/.local/share/flatpak
2016-05-09 12:21:28 +02:00
Alexander Larsson
8abbc0186e
Rename everything but the on-disk location to flatpak
2016-05-09 11:11:55 +02:00
Alexander Larsson
ba37b22d78
Rename library to libflatpak
2016-05-09 09:46:26 +02:00
Alexander Larsson
c24528d369
Rename source files to flatpak
2016-05-09 09:00:20 +02:00
Alexander Larsson
6a613d1fab
Rename all non-autogenerated symbols to flatpak
2016-05-09 09:00:20 +02:00
Alexander Larsson
1ffdf27d92
uncruftify: Initial run, all non-problematic changes
2016-05-06 16:03:27 +02:00
Alexander Larsson
afa12a446f
main: Remove declaration of old deprecated functions
...
These were removed already
2016-05-06 15:32:31 +02:00
Alexander Larsson
f17fd2a705
enter: Remove cut and paste error code
2016-05-06 15:06:17 +02:00
Alexander Larsson
e12d93b069
Remove spurious ;
2016-05-06 14:23:35 +02:00
Alexander Larsson
663cfcf3a8
Fix make check if uninstalled
...
This uses various environment variables set during make check
to find the trigger, bwrap and xdg-app-dbusproxy from the build/source dir
rather than the installed location.
2016-05-03 10:27:36 +02:00
Tristan Van Berkom
51e387159b
build-export: Add --arch option
...
This patch adds the --arch option to the build-export builtin command.
Previously build-export derives this from the metadata and then falls back
to xdg_app_get_arch(), except that this does not work when the metadata does
not specify an arch (such as with extensions like .Debug or .Locale).
https://bugs.freedesktop.org/show_bug.cgi?id=95226
2016-05-03 09:05:56 +02:00
Alexander Larsson
123f32015d
tests/test-run.sh: Add tests for proper installation
2016-05-02 10:47:59 +02:00
Alexander Larsson
1963957253
cli: Remove old deprecated xdg-app commands
...
Its been long enough so nothing should be using these, lets drop them.
2016-05-02 09:46:56 +02:00
Alexander Larsson
126d805e90
oci: Use /bin/sh, not sh as the default command
...
runc doesn't look in PATH for this
2016-04-29 17:07:19 +02:00
Alexander Larsson
4c3bf179e2
Use bubblewrap instead of xdg-app-helper
...
Bubblewrap is a new tool from project atomic. Its similar to the old
xdg-app-helper, but even more minimal, and a bit more generic. Its designed
to be easy to git submodule install, but at some point we will probably
support using the system installed version too.
Using bubblewraps lets us share the load of security mainainance and
allows other people to use bubblewrap to do their own unprivileged
sandboxes.
2016-04-29 15:52:44 +02:00
Alexander Larsson
6112eb1470
oci: Move the extra files (ref/metadata/commit) too rootfs
...
Saving them in the image means they will be transferred with it, increasing
the chances that the commit can be recreated from the image.
2016-04-28 20:43:27 +02:00
Alexander Larsson
c0f2304f81
Experimental version of OCI support
...
This lets you export and import a runtime or an application into a tarball
that explodes to match the oci runtime spec. This goal of this is to interchange
xdg-app apps with other systems that support OCI.
Note that this is highly experimental, because the oci specs are in flux, and
in fact we should probably use the OCI image spec instead of the runtime spec,
but its not yet finished enough for us to use it. So, don't rely on this for
now other than to experiment with it.
2016-04-28 20:29:49 +02:00
Alexander Larsson
f37b3261d6
Add support for disabled remotes
...
If this is set we don't list them by default, and we don't
automatically update apps from them.
2016-04-27 13:39:34 +02:00
Alexander Larsson
4b0621cfb0
info: Use deploy_data
2016-04-27 13:01:54 +02:00
Alexander Larsson
5789c5c99d
list: Use deploy data to avoid lots of seeks
2016-04-27 12:58:55 +02:00
Alexander Larsson
e4d3a7da5a
list: Show installed size and subpaths
2016-04-27 10:23:04 +02:00