summaryrefslogtreecommitdiff
path: root/common/flatpak-run.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/flatpak-run.c')
-rw-r--r--common/flatpak-run.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/common/flatpak-run.c b/common/flatpak-run.c
index 9880bbe6..3ec22011 100644
--- a/common/flatpak-run.c
+++ b/common/flatpak-run.c
@@ -1921,8 +1921,13 @@ add_monitor_path_args (gboolean use_session_helper,
"--symlink", "/run/host/monitor/host.conf", "/etc/host.conf",
"--symlink", "/run/host/monitor/hosts", "/etc/hosts",
"--symlink", "/run/host/monitor/timezone", "/etc/timezone",
- "--symlink", "/run/host/monitor/defaults", "/etc/glib-2.0/settings/defaults",
- "--symlink", "/run/host/monitor/locks", "/etc/glib-2.0/settings/locks",
+ NULL);
+
+ if (g_variant_lookup (session_data, "settings", "s", &monitor_path))
+ flatpak_bwrap_add_args (bwrap,
+ "--ro-bind", monitor_path, "/run/host/settings",
+ "--symlink", "/run/host/settings/defaults", "/etc/glib-2.0/settings/defaults",
+ "--symlink", "/run/host/settings/locks", "/etc/glib-2.0/settings/locks",
NULL);
if (g_variant_lookup (session_data, "pkcs11-socket", "s", &pkcs11_socket_path))