Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/rcw.c
diff options
context:
space:
mode:
authorAntenore Gatta (tmow) <antenore@simbiosi.org>2022-01-08 01:24:29 +0300
committerAntenore Gatta (tmow) <antenore@simbiosi.org>2022-01-08 01:24:29 +0300
commit8abc84c821bb96d6cca878028d1c02e63e5bf7e2 (patch)
treea477c3ee3a63cb36bdb4def52a901fd73737c772 /src/rcw.c
parent1f11eb5fc5ff7879b321e7dc358019963c091ff3 (diff)
Primary Password per profile and as global option.
Now it's possible to lock/secure a single connection profile. Signed-off-by: Antenore Gatta (tmow) <antenore@simbiosi.org>
Diffstat (limited to 'src/rcw.c')
-rw-r--r--src/rcw.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rcw.c b/src/rcw.c
index a7b017d80..d2fe02987 100644
--- a/src/rcw.c
+++ b/src/rcw.c
@@ -51,6 +51,7 @@
#include "remmina_applet_menu.h"
#include "remmina_file.h"
#include "remmina_file_manager.h"
+#include "remmina_log.h"
#include "remmina_message_panel.h"
#include "remmina_ext_exec.h"
#include "remmina_plugin_manager.h"
@@ -58,9 +59,9 @@
#include "remmina_protocol_widget.h"
#include "remmina_public.h"
#include "remmina_scrolled_viewport.h"
+#include "remmina_unlock.h"
#include "remmina_utils.h"
#include "remmina_widget_pool.h"
-#include "remmina_log.h"
#include "remmina/remmina_trace_calls.h"
#ifdef GDK_WINDOWING_WAYLAND
@@ -4291,6 +4292,9 @@ gboolean rcw_open_from_filename(const gchar *filename)
remminafile = remmina_file_manager_load_file(filename);
if (remminafile) {
+ if (remmina_file_get_int (remminafile, "profile-lock", FALSE)
+ && remmina_unlock_new(remmina_main_get_window()) == 0)
+ return FALSE;
rcw_open_from_file(remminafile);
return TRUE;
} else {