Commit Graph

644 Commits

Author SHA1 Message Date
Alexander Larsson
c486cc461e run: Document the sandbox related swtiches 2019-11-26 09:52:07 +01:00
Matthias Clasen
d4b3694609 Document the flatpak-spawn --watch-bus option
This was missing from the man page.
2019-11-26 09:51:46 +01:00
Matthias Clasen
c917257a1c permission-remove: Allow removing a single row
Allow specifying an app-id to remove from a given
id in a given table.
2019-11-21 13:48:31 +01:00
Matthias Clasen
5a8489cefe Add a permission-set command
This command adds permissions for an app to one of the permission
store database(s).
2019-11-21 13:48:31 +01:00
Alexander Larsson
4718bcccfd enter: Make sure sudo -E works when using setuid brwap
This also updates the manpage so it is correct wrt permissions and
sudo.
2019-11-20 13:17:43 +01:00
Will Thompson
6e209a52a4 build-finish: fix 'of' typo in manpage 2019-11-01 12:52:38 +00:00
Philip Withnall
d5a1170820 doc: Clarify format of locale identifiers in extra-languages key
Also update the tests to use the same format, and make sure to include
coverage of all forms of locale (language-only, with locale, with
codeset, and with modifier).

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-10-24 13:54:05 +01:00
Philip Withnall
62cb538440 doc: Add some missing <literal> docbook tags
Makes the documentation a little clearer to read.

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
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
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
Bastien Nocera
0873e5dd79 docs: Fix typos 2019-10-15 13:13:58 +02:00
Matthew Leeds
1ebc94dc48 doc/flatpak-mask: Fix a couple typos 2019-10-14 09:52:42 -05: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
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
Philip Withnall
ab5c0968e6 flatpak-run: Add parental controls support for filtering apps
Prevent the user from running a flatpak app if that app is filtered by
the parental controls applied to the user.

If flatpak is running as a system user (UID < 1000), ignore failure to
load the app filter. This could happen if a flatpak is run in the
gnome-initial-setup session, before the user’s account is created.

Includes contributions by André Magalhães.

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

https://github.com/flatpak/flatpak/pull/2797
2019-10-03 10:42:04 +02:00
Alexander Larsson
9c715096aa man: Reference flatpak-mask.1 from flatpak.1 2019-09-30 10:52:06 +02:00
Alexander Larsson
02b542789a Add manpage for flatpak mask 2019-09-30 10:52:06 +02:00
Alexander Larsson
161a13951b Add flatpak install --or-update operation
This allows you to ensure that a particular app/runtime is installed
and with the latest version in a single operation, which is useful
for instance in automatic use, like CI systems.
2019-09-27 09:07:13 +02:00
Matthew Leeds
593f0e563b doc/flatpak-create-usb: Clarify how to install from USB 2019-09-27 08:53:04 +02:00
Alexander Larsson
5026f01153 Support multiple versions in required-flatpak metadata key
Support a list of versions that are supported. This will be useful
for e.g. the extra_data for extensions once that is backported to
1.2, because that will require it to say that it is supported for
> 1.2.5 in the 1.2 series and > 1.4.2 otherwise.

Closes: #3112
Approved by: alexlarsson
2019-09-18 14:55:38 +00:00
Matthew Leeds
13279af129 Merge pull request #3058 from mazen-asef/add_default_languages_key
Add extra-languages config key
2019-09-13 13:19:08 -07:00
Mazen Asef
a0666034db app: Add new extra-languages key
If xa.languages is set, use these, and no others. Otherwise, take the union
of xa.extra-languages, and the system default locales for system repos;
xa.extra-languages for user repo and the langs based on the user's locale

Fixes https://github.com/flatpak/flatpak/issues/3043
2019-09-13 15:31:14 -03:00
Matthew Leeds
c474c941c0 doc/flatpak-metadata: Fix a couple typos
Closes: #3096
Approved by: alexlarsson
2019-09-13 07:18:05 +00:00
Matthew Leeds
9a0e45941a doc/flatpak-kill: Add a hint about flatpak ps 2019-07-21 12:50:50 -07:00
Matthew Leeds
5edafefa4b doc/flatpak-enter: Make a few minor improvements 2019-07-21 12:45:58 -07:00
Richard Hughes
7e62d01d9b Add 5 missing symbols to the generated GtkDoc output
Closes: #2982
Approved by: mwleeds
2019-06-25 20:44:16 +00:00
Antonio Larrosa
7898ffef96 Rename libflapak-docs.xml to fix a typo in its name
Note the missing 't'

Closes: #2963
Approved by: mwleeds
2019-06-14 23:02:10 +00:00
Ryan Gonzalez
da62f665da doc: Document ExtensionOf.runtime
Closes: #2954
Approved by: alexlarsson
2019-06-12 06:23:07 +00:00
Matthew Leeds
d8853f424c doc: Improve docs for --arch options
It's not obvious what values are valid, so add a hint.

Closes: #2930
Approved by: matthiasclasen
2019-05-30 12:12:12 +00:00
Alexander Larsson
c01fdee171 lib Add flatpak_remote_new_from_file() to add remotes from flatpakrefs
Closes: #2888
Approved by: alexlarsson
2019-05-09 12:39:36 +00:00
Alexander Larsson
8d674234aa lib: Add flatpak_installation_add_remote
This is basically modify_remote, but it fails if the remote is
already configured instead of modifying it. Although it also
has a if_needed option, and if that is set it will silently complete
as a no-op (exept resetting filters).

Closes: #2888
Approved by: alexlarsson
2019-05-09 12:39:36 +00:00
Alexander Larsson
39946c3959 Support .flatpakrepo files in /etc/flatpak/remotes.d
A *.flatpakrepo file in this directory will be automatically
added as a system remote with the basename (sans extension) as the
name unless that name already exist. Also, once this is done we
record the name in the repo config so that it is not applied again if
the remote is removed.

Closes: #2884
Approved by: alexlarsson
2019-05-08 08:13:52 +00:00
Alexander Larsson
6ee61a29fd Remove support for /etc/flatpak/remotes.d config files
This kind of remotes don't work very well, because they are not modifiable
or removable and can cause conflicts with pre-existing remotes.

We instead want to switch to a way to define default remotes that
is applied to the regular ostree repo config, allowing later changes.

Closes: #2884
Approved by: alexlarsson
2019-05-08 08:13:52 +00:00
Alexander Larsson
40cc39ebf6 add-remote: Support loading filter from .flatpakrepo file
This is kind of special as it handles non-existing filter keys
as "override to no filters" instead of "leave existing filters" whic
we do for other things. However, that matches how we want to use
.flatpakrepo files to override site-local filters.

Closes: #2869
Approved by: alexlarsson
2019-05-06 13:58:58 +00:00
Alexander Larsson
2bd55552b6 flatpak remote-modify add --filter and --no-filter options
Closes: #2869
Approved by: alexlarsson
2019-05-06 13:58:58 +00:00
Alexander Larsson
9454e2d65e flatpak remote-add add --filter option
Closes: #2869
Approved by: alexlarsson
2019-05-06 13:58:58 +00:00
Alexander Larsson
72a7f8aa4e flatpak remotes - show filter in list
There is an optional filter column, and a flag for filtered remotes in the
default options.

Closes: #2869
Approved by: alexlarsson
2019-05-06 13:58:58 +00:00
Alexander Larsson
0a66707b00 remote-ls: Add --cached option
This prefers cached data, even if stale.

Closes: #2859
Approved by: alexlarsson
2019-04-26 08:00:27 +00:00
Alexander Larsson
8057de20a8 remote-info: Add --cached support
This prefers any cached data if available, even if its stale.

Closes: #2859
Approved by: alexlarsson
2019-04-26 08:00:27 +00:00
Alexander Larsson
3b060d6082 manpages: Add the new name column
Closes: #2852
Approved by: alexlarsson
2019-04-24 13:31:35 +00:00
Matthias Clasen
51fce8eee7 permission-reset: Add an --all option
This lets users do a 'factory reset' of the permission store.

Closes: #2830
Approved by: alexlarsson
2019-04-23 07:54:06 +00:00
Matthew Leeds
5e710cb995 doc/flatpak: Document FLATPAK_SYSTEM_CACHE_DIR
This environment variable has been used for a while; it's just
undocumented. Copy some information from a comment in flatpak-dir.c.

Closes: #2841
Approved by: matthiasclasen
2019-04-20 17:41:34 +00:00
Matthew Leeds
b1d4e19646 doc/build-export: Fix a typo 2019-04-19 15:17:06 -07:00
Matthias Clasen
d65ebf19f3 list: Add a runtime column
This is useful information, so we should allow showing it.

Closes: #2815
Approved by: alexlarsson
2019-04-12 09:13:34 +00:00
Alexander Larsson
b01a52e7c6 build-commit-from: Add support for--end-of-life-rebase=OLD=NEW
This lets you rebase an app, as well as other matching refs (OLD is
used as a prefix match) such as locale and debug extensions.

r your changes. Lines starting

Closes: #2775
Approved by: alexlarsson
2019-04-12 08:59:35 +00:00
Ryan Gonzalez
440bee1d51 build-export: Add --end-of-life-rebase
Closes: #2775
Approved by: alexlarsson
2019-04-12 08:59:35 +00:00