5599 Commits

Author SHA1 Message Date
Alexander Larsson
400a3358ec Update pofiles for release 1.6.1 2020-01-23 14:00:01 +01:00
Alexander Larsson
68d814bd01 Update NEWS for release 2020-01-23 13:48:55 +01:00
Alexander Larsson
50fc19daf1 Bump version to 1.6.1 2020-01-23 13:35:25 +01:00
Alexander Larsson
b3bd501978 update-portal: Limit which filesystem access additions we allow
Don't allow adding access to things like ~/foo xdg-foo/bar or similar
things just because you used to have home access, because such files
may be outside the homedir (for instance, if they are symlinks or configured
via xdg-user-dirs).
2020-01-23 13:34:20 +01:00
Alexander Larsson
3c6c51f46b build-commit-from: Fix generation of download-size
In flatpak-builtins-build-commit-from.c we call flatpak_repo_collect_sizes()
without initializing the passed in download size to zero, which mean
we sum with sizes with some random value as the start.

This is fixed by having flatpak_repo_collect_sizes() always initialize
the counters to 0 at the start.

Fixes https://github.com/flatpak/flatpak/issues/3362
2020-01-23 09:04:29 +01:00
Alexander Larsson
b735344644 Correct filename in docs 2020-01-17 11:47:04 +01:00
Alexander Larsson
39903eab40 Add --device=shm permission
This new permission exposes the host /dev, which is normally not visible
even with --device=all, as it is not really a device node but rather
a bunch of shared memory blocks available on the host.

This access is needed by jack, as explained at:
https://github.com/flatpak/flatpak/issues/1509

Long term I think a better solution for pro audio (like pipewire) is
a better solution, but for now we should at least allow jack apps to work.
2020-01-17 11:47:04 +01:00
Matthew Leeds
c8df96a79e Merge pull request #3363 from uajain/uajain/fix-gs-crash
Fix a gnome-software crash
2020-01-16 10:51:04 -08:00
Umang Jain
56787325ed dir: Return empty array instead of NULL while querying related-refs
Initialize the related-refs array with empty GPtrArray so that if
the remote has 'url= ' (for e.g., in case of flatpak bundle's remotes),
a empty array is returned instead of NULL.

(NULL mostly implies a operation has failed and error is set)

Also, this syncs the implementation of `if (*url == 0)` with
that of  flatak_dir_find_remote_related_for_metadata function.
2020-01-16 19:30:09 +05:30
Umang Jain
18626add02 dir: Return NULL instead of boolean when querying related refs
The related refs are returned as GPtrArray, hence return NULL
instead of FALSE on error paths.
2020-01-16 19:15:01 +05:30
Alexander Larsson
d46483f578 Sandbox: Allow share-gpu also if caller has device=all
This fixes https://github.com/flatpak/flatpak/issues/3330
2020-01-15 08:57:15 +01:00
Philip Withnall
aa97d1da8c flatpak.pc: Move ostree-1 from Requires.private to Requires
While flatpak carefully doesn’t expose any OSTree symbols in its C API,
it does sometimes return GErrors with the domain `OSTREE_GPG_ERROR`.
Applications can happily link against flatpak and receive such errors,
but won’t be able to understand them without also linking against
OSTree.

OSTree is a hard dependency of flatpak, so we might as well move it to
`Requires` rather than `Requires.private` to ensure that clients link
against it.

See https://gitlab.gnome.org/GNOME/gnome-software/merge_requests/336/diffs#note_650999

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2020-01-15 08:57:03 +01:00
scootergrisen
2e293c978a Update danish translation 2020-01-15 08:56:26 +01:00
scootergrisen
25d33adcec Update danish translation 2020-01-15 08:56:26 +01:00
Matthias Clasen
77a341fd34 Merge pull request #3349 from frandieguez/master
Update Galician translations
2020-01-09 09:46:22 -05:00
Matthias Clasen
11fe1b813c Merge pull request #3358 from yurchor/master
Ukrainian translation update
2020-01-09 09:46:05 -05:00
Yuri Chornoivan
50fa0b1673 Ukrainian translation update 2020-01-09 14:28:53 +02:00
Fran Dieguez
6741d970e9 Update Galician translations
aplicativo -> aplicación
2019-12-28 12:01:01 +01:00
Rafael Fontenelle
9cd84747fb Update Brazilian Portuguese translation 2019-12-27 11:08:24 +01:00
Alexander Larsson
5cfccaad39 CI: Test build with old glib (xenial) 2019-12-23 11:30:45 +01:00
Matthias Clasen
3d11992dd1 Merge pull request #3331 from piotrdrag/pl-update-191221
Update Polish translation 191221
2019-12-22 23:33:03 -05:00
Piotr Drąg
c963b27277 Update Polish translation 2019-12-21 15:32:50 +01:00
Matthias Clasen
1a17f60613 Merge pull request #3327 from AsciiWolf/l10n
Update Czech translation
2019-12-21 08:33:30 -05:00
AsciiWolf
d9273e205e Update Czech translation 2019-12-20 16:04:18 +01:00
Alexander Larsson
ba7b9c30d6 tests: add some missing includes 2019-12-20 13:45:37 +01:00
Alexander Larsson
a98d655f4f Fix build on older glib
Don't use G_VARIANT_BUILDER_INIT() which is glib 2.50 only
2019-12-20 13:25:20 +01:00
Alexander Larsson
722e20dfbb Update pofiles for release 1.6.0 2019-12-20 11:54:19 +01:00
Alexander Larsson
c048bdc941 Update NEWS 2019-12-20 11:33:18 +01:00
Matthias Clasen
6e45ff6d0f portal: Don't poll for updates on metered networks
Stop polling for updates on metered networks. Allow
overriding this with the new --poll-when-metered
option.

Fixes: https://github.com/flatpak/flatpak/issues/3286
2019-12-20 11:32:40 +01:00
Alexander Larsson
6179620de5 Update NEWS for release 2019-12-20 11:22:19 +01:00
Alexander Larsson
6056e4c235 Bump version to 1.6.0 2019-12-20 11:22:11 +01:00
Alexander Larsson
681ca88547 oci: Fix leak in index handling 2019-12-20 11:15:39 +01:00
Alexander Larsson
202b2508d5 filters: Fix some leaks 2019-12-20 11:15:39 +01:00
Alexander Larsson
aabcbfa586 flatpak_installation_list_unused_refs: Fix leak 2019-12-20 11:15:39 +01:00
Matthias Clasen
e6c8e796ca Merge pull request #3323 from alexlarsson/fix-leaks
Fix leaks
2019-12-19 23:17:09 -05:00
Alexander Larsson
86c9e55561 tests: Drop oci label/annotation separate tests
We only do labels now, so no need to test both.
2019-12-19 18:01:00 +01:00
Alexander Larsson
883f4bf177 oci: Fix leak 2019-12-19 17:42:32 +01:00
Alexander Larsson
0af22af913 transaction: Fix leak 2019-12-19 17:42:19 +01:00
Alexander Larsson
ca6c12d4dd authenticators: Fix leak 2019-12-19 17:42:04 +01:00
Alexander Larsson
1c737df031 completion: Fix some leaks 2019-12-19 17:09:47 +01:00
Alexander Larsson
815502b97f remote-add: Fix leak 2019-12-19 16:57:47 +01:00
Alexander Larsson
7a8801da50 Fix leak in flatpak_repo_update() 2019-12-19 16:53:14 +01:00
Alexander Larsson
7c3e6f7214 appdata: Fix leak of id string. 2019-12-19 16:52:58 +01:00
Alexander Larsson
cc4ea023f0 tests: Only fail FLATPAK_TESTS_VALGRIND_LEAKS for *definite* leaks 2019-12-19 16:52:36 +01:00
Alexander Larsson
aabadfdc8e authenticator: Fix sandboxed authenticators
We rely on broadcast signals for authenticator replies rather than unicast
as these are not filtered by the sandbox (due to them being opt-in by the
receiver).

Actually this already worked fine in the flatpak side as the generated
code already subscribes to the signals, this just switches the internal
authenticators (test and oci) to using the new way to emit signals.
2019-12-19 10:33:21 +01:00
Alexander Larsson
1291663a5a transaction: Automatically install authenticator if needed
If the local config for the remote specifies an authenticator name
and that is should in installed, automatically add it to updates
in a transaction.

The local config can either be manually configured, or automatically
from a flatpakrepo file or the summary metadata.
2019-12-19 10:33:21 +01:00
Alexander Larsson
7480bd8f07 Show authenticator info in flatpak repo output 2019-12-19 10:33:21 +01:00
Alexander Larsson
4bb2f0684a Support updating authenticator keys via remote config updates 2019-12-19 10:33:21 +01:00
Alexander Larsson
04162f3286 repo support for setting authenticator options
flatpak build-update-repo now lets you modify the
autenticator-name/install/options keys, and these are migrated to
the summary/metadata during update.
2019-12-19 10:33:21 +01:00
Alexander Larsson
798d90ef0c flatpakrepo files: Support Authenticator keys
This parses AuthenticatorName and AuthenticatorInstall
2019-12-19 10:33:21 +01:00