Commit Graph

5310 Commits

Author SHA1 Message Date
Philip Withnall
a3a7f3214c config: Accept bokmal as a language
It’s listed in `locale -a` output, even though it should canonically be
represented as `nb`.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-10-24 13:54:05 +01:00
Philip Withnall
e78a53fede config: Accept C and POSIX as languages
They are listed as languages in `locale -a` output.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-10-24 13:54:05 +01:00
Matthias Clasen
e9aeb637de Merge pull request #3190 from mbooth101/spawn-docs
Adds documentation for the new flatpak-spawn option
2019-10-23 13:54:08 -04:00
Matthias Clasen
7928a26b96 Merge pull request #3193 from egore/patch-1
Fix copy&pasto in refpurpose of permission-remove
2019-10-23 13:53:03 -04:00
Christoph Brill
e22cdbef1b Fix copy&pasto in refpurpose of permission-remove 2019-10-23 16:31:46 +02:00
Mat Booth
35baa75ad2 Adds documentation for the new flatpak-spawn option
added in https://github.com/flatpak/flatpak-xdg-utils/pull/22

Signed-off-by: Mat Booth <mat.booth@redhat.com>
2019-10-22 14:10:46 +01:00
Matthias Clasen
8cad3882c4 Merge pull request #3189 from scootergrisen/patch-1
Update danish translation
2019-10-21 22:03:34 -04:00
scootergrisen
4c81021f8d Update danish translation 2019-10-21 17:24:24 +02:00
Matthew Leeds
512444dc23 Merge pull request #3152 from mazen-asef/languages_locales_key
app: Change xa.extra-languages to accept locales
2019-10-16 15:50:35 -05:00
Mazen Asef
65912f27fe app: Allow locales to be stored in the extra-languages key
In order to configure gnome-software to show specific apps in one region
without showing to all language speakers, we allow the storage of full
locales on the extra-languages key. However, these locales are ignored when
calling flatpak_installation_get_default_languages, so locales will be reduced
to their language identifier (eg. en_IN locale will be returned as 'en', and
az_Latn_AZ will be returned as 'az'). In order to get the full locales, we can
call flatpak_installation_get_default_locales instead, which can return languages
and locales.
2019-10-16 16:25:06 -03:00
Matthias Clasen
0fd672cdc4 Merge pull request #3179 from flatpak/wip/hadess/fix-typos
docs: Fix typos
2019-10-15 12:30:38 -04:00
Bastien Nocera
0873e5dd79 docs: Fix typos 2019-10-15 13:13:58 +02:00
Matthias Clasen
f1f83499b3 Merge pull request #3174 from mwleeds/doc-mask-fix-typos
doc/flatpak-mask: Fix a couple typos
2019-10-14 12:04:58 -04:00
Matthew Leeds
1ebc94dc48 doc/flatpak-mask: Fix a couple typos 2019-10-14 09:52:42 -05:00
Matthias Clasen
caaeb53828 Merge pull request #3169 from smcv/nodist
build: Don't distribute flatpak-portal-dbus.c in tarballs
2019-10-11 08:44:22 -04:00
Matthias Clasen
ef4f283e82 Merge pull request #3168 from smcv/test-portal-not-executable
build: Don't install test.portal as executable
2019-10-11 08:44:05 -04:00
Matthias Clasen
6ca8c88d1b Merge pull request #3170 from alexlarsson/flatpak-run-low-diskspace
Use /tmp for flatpak run
2019-10-11 08:42:44 -04:00
Alexander Larsson
bbfe253dac flatpak run: Use /tmp instead of /var/tmp for small tmpfiles
This writes temporary files needed for .xauth and seccomp to /tmp
rather than /var/tmp. This is useful because /tmp is more likely
to be tmpfs, and thus not run into diskspace issues.
2019-10-11 13:52:50 +02:00
Alexander Larsson
613e510b3e Update to latest libglnx with glnx_open_anonymous_tmpfile_full 2019-10-11 13:52:15 +02:00
Simon McVittie
b64cad0f18 build: Don't distribute flatpak-portal-dbus.c in tarballs
Adding generated files to foo_SOURCES causes them to be distributed,
even if that was not intended. Use nodist_foo_SOURCES instead.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2019-10-11 10:22:08 +01:00
Simon McVittie
8fd5b14d08 build: Don't install test.portal as executable
There's no need for this file to be executable. If it was executed,
shells would typically try to execute it as a shell script (because it
isn't an ELF executable and doesn't start with #!), which isn't going
to work.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2019-10-11 10:17:52 +01:00
Matthias Clasen
11455525fb Merge pull request #3166 from pwithnall/3017-extension-ordering
transaction: Install extensions before apps
2019-10-10 08:46:43 -04:00
Philip Withnall
3acb4246bc transaction: Install extensions before apps
This ensures that when the operation to install the app completes, the
app is ready to run — rather than having to wait for subsequent
operations to install extensions which the app depends on (such as
content, or locales).

This fits in with the current ordering for *un*installing apps, where
the main app is uninstalled first, followed by its extensions.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://github.com/flatpak/flatpak/issues/3017
2019-10-10 13:22:48 +01:00
Matthias Clasen
b11bb3c1e2 Merge pull request #3165 from pwithnall/installed-test-fixes
build: Fix the path to some installed-tests files
2019-10-10 07:55:22 -04:00
Matthias Clasen
03ef120aea Merge pull request #3164 from pwithnall/dbus-unix-fds
session-helper: Correctly annotate use of Unix FDs in D-Bus API
2019-10-10 07:54:43 -04:00
Philip Withnall
0975c65574 build: Fix the path to some installed-tests files
Files in the srcdir need to be explicitly prefixed as such in rule
commands. This fixes `make install` when installed-tests are enabled.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-10-10 11:56:28 +01:00
Philip Withnall
23e1928a19 session-helper: Correctly annotate use of Unix FDs in D-Bus API
This fixes compilation with GLib 2.63’s `gdbus-codegen`, which
automatically enables Unix FD support for D-Bus APIs which use the `h`
type, even if the `org.gtk.GDBus.C.UnixFD` annotation is missing.

By adding the annotation, the generated header whether using
`gdbus-codegen` 2.63 or < 2.63.

This is a slight API break in GLib, but it’s questionable about whether
flatpak should have always had the annotation.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-10-10 11:45:53 +01:00
Kukuh Syafaat
3a03e7f292 Update Indonesian translation 2019-10-10 09:37:11 +02:00
Alexander Larsson
0e51264788 tests: Use regular HTTPServer, not ThreadingHTTPServer
The later requires python 3.7
2019-10-09 14:25:44 +02:00
Alexander Larsson
62529fa0ce ci: Drop --trace from make check
Its really hard to read the output with all this spew
2019-10-09 14:25:44 +02:00
Alexander Larsson
227cde12ba tests: Redo httpd server setup
Rather than this weird shell loop with a timeout and polling we
move the httpd spawning entirely into the python code, and use
a pipe to synchronize the spawning. This way we can also use
the shell job control to properly clean up any running processes
from the test suite.

Additionally, this adds some (lame) support for token handling in the
test webserver, where you for any file foo can create a foo.need_token
containing a token that is needed for that file.
2019-10-09 14:25:44 +02:00
Matthias Clasen
cee0d81d1b Merge pull request #3158 from uajain/uajain/add-missing-getters
Add a couple of missing getters
2019-10-08 07:26:08 -04:00
Umang Jain
11631f9514 transaction: Add getter for querying no-pull
As this is a required to deploy autoupdates downloaded in the
background, for clients like gnome-software.
2019-10-08 15:21:09 +05:30
Umang Jain
c7670e87d7 transaction: Add getter for querying no-deploy
FlatpakTransaction inherently doesn't differentiate between a
autoupdate and a regular update; both are
FLATPAK_TRANSACTION_OPERATION_UPDATE.

This getter can help differentiate between a regular update
and autoupdate in clients like gnome-software. Autoupdates
work in two separate transaction passes; first that runs with
"no-deploy" and the second pass that deploys all the downloaded
update (i.e. with "no-pull").
2019-10-08 15:21:03 +05:30
Matthias Clasen
a1f128a6f0 Merge pull request #3157 from pwithnall/parental-translations
po: Add some translations for parental controls strings
2019-10-07 15:14:24 -04:00
Matthias Clasen
804aaeea83 Merge pull request #3156 from alexlarsson/py3-tests
tests: Convert all tests to python3
2019-10-07 14:44:15 -04:00
Philip Withnall
6cdd216e8d po: Add some translations for parental controls strings
These are from paid-for translations from Endless’ downstream copy of
flatpak. I don’t know the original authors, and don’t know if the
translations are correct. (They should be though.)

Probably better than having no translations for these strings in
upstream flatpak, for the moment.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-10-07 19:32:22 +01:00
Alexander Larsson
2b6641575d tests: Convert all tests to python3
Python2 is pretty much dead, lets make us only use python3.
2019-10-07 11:38:24 +02:00
Matthias Clasen
b2c471ca5a Merge pull request #3153 from matthiasclasen/fix-remotes-d
Fix a doc typo
2019-10-04 09:46:07 -04:00
Matthias Clasen
3910cff1a3 Merge pull request #3154 from AsciiWolf/l10n
Update Czech translation
2019-10-04 09:45:51 -04:00
AsciiWolf
13cb348e67 Update Czech translation 2019-10-04 13:58:22 +02:00
Matthias Clasen
8a338dff32 Fix a doc typo
The docs refer to flatpakref files in /etc/flatpak/remotes.d,
but the code is looking for flatpakrepo files there.
2019-10-03 22:23:30 -04:00
Matthias Clasen
9999d0294d Merge pull request #3151 from piotrdrag/piotrdrag/update-potfiles-191003
Update POTFILES.in 191003
2019-10-03 13:42:46 -04:00
Piotr Drąg
5044413de1 Update POTFILES.in 2019-10-03 19:18:27 +02:00
Philip Withnall
1e589c1b74 github: Add malcontent (parental controls) support to CI build
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-10-03 13:54:37 +02:00
Philip Withnall
7c9d609399 system-helper: Tweak documentation for parental controls
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-10-03 13:54:37 +02:00
Philip Withnall
62b0d3f4f1 common: Bump version numbers for new parental controls API
The PR was written before 1.5.0 was released, but was then merged after
1.5.0 was released — so bump the version numbers to 1.5.1.

See https://github.com/flatpak/flatpak/pull/2797.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-10-03 13:54:37 +02:00
Alexander Larsson
c4e6c32f68 Remove old CI system 2019-10-03 11:42:33 +02:00
Philip Withnall
c40223267c error: Add a ‘permission denied’ error code
This will be used for parental controls, and potentially other reasons
for denying installation of an app.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-10-03 10:42:04 +02:00
Philip Withnall
de1759e2b4 utils: Add missing D-Bus error serialisation
FLATPAK_ERROR_REF_NOT_FOUND was missing its serialisation for sending
over D-Bus.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-10-03 10:42:04 +02:00