[evolution] [Flatpak] Use host system DConf to store user settings



commit 41acef1d185fe6add7ebf896e60339080f7ad5c9
Author: Milan Crha <mcrha redhat com>
Date:   Thu Oct 4 12:49:44 2018 +0200

    [Flatpak] Use host system DConf to store user settings
    
    This requires https://gitlab.gnome.org/GNOME/evolution-data-server/commit/c671f8b10

 flatpak/org.gnome.Evolution-master.json | 26 +++++---------------------
 flatpak/org.gnome.Evolution-stable.json | 26 +++++---------------------
 2 files changed, 10 insertions(+), 42 deletions(-)
---
diff --git a/flatpak/org.gnome.Evolution-master.json b/flatpak/org.gnome.Evolution-master.json
index 999f4d4f61..9243fab17f 100644
--- a/flatpak/org.gnome.Evolution-master.json
+++ b/flatpak/org.gnome.Evolution-master.json
@@ -27,6 +27,10 @@
                "--socket=x11",
                "--socket=wayland",
                "--socket=pulseaudio",
+               "--filesystem=xdg-run/dconf",
+               "--filesystem=~/.config/dconf:ro",
+               "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
+               "--talk-name=ca.desrt.dconf",
                "--talk-name=org.freedesktop.Notifications",
                "--talk-name=org.gnome.OnlineAccounts"
        ],
@@ -167,26 +171,6 @@
                        ]
                },
 
-               {
-                       "name": "dconf",
-                       "config-opts": [
-                               "--disable-gtk-doc",
-                               "--disable-man"
-                       ],
-                       "cleanup": [
-                               "/share/bash-completion",
-                               "/share/gtk-doc",
-                               "/share/vala"
-                       ],
-                       "sources": [
-                               {
-                                       "type": "archive",
-                                       "url": 
"https://download.gnome.org/sources/dconf/0.26/dconf-0.26.0.tar.xz";,
-                                       "sha256": 
"8683292eb31a3fae31e561f0a4220d8569b0f6d882e9958b68373f9043d658c9"
-                               }
-                       ]
-               },
-
                {
                        "name": "gnome-keyring",
                        "rm-configure": true,
@@ -305,7 +289,6 @@
                                        "commands": [
                                                "export GIO_USE_NETWORK_MONITOR=base",
                                                "echo evolution-flatpak | /app/bin/gnome-keyring-daemon 
--daemonize --unlock &",
-                                               "/app/libexec/dconf-service &",
                                                "sleep 1",
                                                "gsettings reset org.gnome.evolution-data-server 
network-monitor-gio-name",
                                                "/app/libexec/evolution-source-registry &",
@@ -325,6 +308,7 @@
                                                "/app/libexec/evolution-data-server/evolution-dbus-session 
\\",
                                                "       --exec /app/bin/evolution-wrapper \\",
                                                "       --service-dir /app/share/dbus-1/services/ \\",
+                                               "       --iface ca.desrt.dconf:/ca/desrt/dconf \\",
                                                "       --iface 
org.freedesktop.Notifications:/org/freedesktop/Notifications \\",
                                                "       --iface 
org.freedesktop.portal.Desktop:/org/freedesktop/portal/desktop \\",
                                                "       --iface 
org.gnome.OnlineAccounts:/org/gnome/OnlineAccounts"
diff --git a/flatpak/org.gnome.Evolution-stable.json b/flatpak/org.gnome.Evolution-stable.json
index 920660f2a6..271a9ddd0d 100644
--- a/flatpak/org.gnome.Evolution-stable.json
+++ b/flatpak/org.gnome.Evolution-stable.json
@@ -26,6 +26,10 @@
                "--socket=x11",
                "--socket=wayland",
                "--socket=pulseaudio",
+               "--filesystem=xdg-run/dconf",
+               "--filesystem=~/.config/dconf:ro",
+               "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
+               "--talk-name=ca.desrt.dconf",
                "--talk-name=org.freedesktop.Notifications",
                "--talk-name=org.gnome.OnlineAccounts"
        ],
@@ -166,26 +170,6 @@
                        ]
                },
 
-               {
-                       "name": "dconf",
-                       "config-opts": [
-                               "--disable-gtk-doc",
-                               "--disable-man"
-                       ],
-                       "cleanup": [
-                               "/share/bash-completion",
-                               "/share/gtk-doc",
-                               "/share/vala"
-                       ],
-                       "sources": [
-                               {
-                                       "type": "archive",
-                                       "url": 
"https://download.gnome.org/sources/dconf/0.26/dconf-0.26.0.tar.xz";,
-                                       "sha256": 
"8683292eb31a3fae31e561f0a4220d8569b0f6d882e9958b68373f9043d658c9"
-                               }
-                       ]
-               },
-
                {
                        "name": "gnome-keyring",
                        "rm-configure": true,
@@ -305,7 +289,6 @@
                                        "commands": [
                                                "export GIO_USE_NETWORK_MONITOR=base",
                                                "echo evolution-flatpak | /app/bin/gnome-keyring-daemon 
--daemonize --unlock &",
-                                               "/app/libexec/dconf-service &",
                                                "sleep 1",
                                                "gsettings reset org.gnome.evolution-data-server 
network-monitor-gio-name",
                                                "/app/libexec/evolution-source-registry &",
@@ -325,6 +308,7 @@
                                                "/app/libexec/evolution-data-server/evolution-dbus-session 
\\",
                                                "       --exec /app/bin/evolution-wrapper \\",
                                                "       --service-dir /app/share/dbus-1/services/ \\",
+                                               "       --iface ca.desrt.dconf:/ca/desrt/dconf \\",
                                                "       --iface 
org.freedesktop.Notifications:/org/freedesktop/Notifications \\",
                                                "       --iface 
org.freedesktop.portal.Desktop:/org/freedesktop/portal/desktop \\",
                                                "       --iface 
org.gnome.OnlineAccounts:/org/gnome/OnlineAccounts"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]