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

gitlab.com/Remmina/remmina-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/password_export/password_export.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/password_export/password_export.py b/plugins/password_export/password_export.py
index 1b1d83d..8c6f93a 100644
--- a/plugins/password_export/password_export.py
+++ b/plugins/password_export/password_export.py
@@ -1,6 +1,5 @@
import gi
import remmina
-import time
import os
gi.require_version('Secret', '1')
from gi.repository import Secret
@@ -19,10 +18,14 @@ class PluginTool:
self.button = None
self.name = "Password Export Tool"
self.type = "tool"
- self.description = "Export all passwords"
+ self.description = "Export all passwords to logs"
self.version = "1.0"
+ print("Loaded password export plugin")
def exec_func(self):
+ if (remmina.pref_get_value(key="use_primary_password") == "true" and (remmina.unlock_new() == 0)):
+ print("Unlock failed")
+ return
data_dir = remmina.get_datadir()
for file in os.listdir(data_dir):
if file.endswith(".remmina"):