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