From e5cccbf5a04bf114a316b23f917312245d9313a5 Mon Sep 17 00:00:00 2001 From: segfault Date: Mon, 9 Jul 2018 21:13:50 +0200 Subject: [PATCH] gtkmountoperation: Support TCRYPT options when using proxy handler GMountOperation now supports options to unlock TCRYPT volumes. This patch sets these options if they are returned by AskPassword() of a GtkMountOperationHandlerProxy. --- gtk/gtkmountoperation.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c index 3561bd2762..2e72d4335c 100644 --- a/gtk/gtkmountoperation.c +++ b/gtk/gtkmountoperation.c @@ -759,6 +759,12 @@ call_password_proxy_cb (GObject *source, g_mount_operation_set_password (op, g_variant_get_string (value, NULL)); else if (strcmp (key, "password_save") == 0) g_mount_operation_set_password_save (op, g_variant_get_uint32 (value)); + else if (strcmp (key, "hidden_volume") == 0) + g_mount_operation_set_is_tcrypt_hidden_volume (op, g_variant_get_boolean (value)); + else if (strcmp (key, "system_volume") == 0) + g_mount_operation_set_is_tcrypt_system_volume (op, g_variant_get_boolean (value)); + else if (strcmp (key, "pim") == 0) + g_mount_operation_set_pim (op, g_variant_get_uint32 (value)); } out: