[gnome-software/1701-permissions-context-tile-says-has-access-to-no-files-even-if-flatpak-app-has-access-to] Apply 2 suggestion(s) to 1 file(s)
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1701-permissions-context-tile-says-has-access-to-no-files-even-if-flatpak-app-has-access-to] Apply 2 suggestion(s) to 1 file(s)
- Date: Wed, 13 Apr 2022 14:50:21 +0000 (UTC)
commit fb2d5b8fbb8b21679d60ae2610749f465a0484ca
Author: Philip Withnall <philip tecnocode co uk>
Date: Wed Apr 13 14:50:19 2022 +0000
Apply 2 suggestion(s) to 1 file(s)
plugins/flatpak/gs-flatpak.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index d62e1a26d..9e5063274 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -242,10 +242,11 @@ perms_from_metadata (GKeyFile *keyfile)
strv = g_key_file_get_string_list (keyfile, "Context", "filesystems", NULL, NULL);
if (strv != NULL) {
- struct {
+ const struct {
const gchar *key;
GsAppPermissions perm;
} filesystems_access[] = {
+ /* Reference:
https://docs.flatpak.org/en/latest/flatpak-command-reference.html#idm45858571325264 */
{ "home", GS_APP_PERMISSIONS_HOME_FULL },
{ "home:rw", GS_APP_PERMISSIONS_HOME_FULL },
{ "home:ro", GS_APP_PERMISSIONS_HOME_READ },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]