diff options
author | Patryk Nowak <pnowak43@proton.me> | 2024-01-03 16:00:31 +0300 |
---|---|---|
committer | Patryk Nowak <pnowak43@proton.me> | 2024-01-03 16:00:31 +0300 |
commit | c9129367c9a194633e712a4041b8c73da8783bfc (patch) | |
tree | 7e78535caaddfbc36af587e1862308f549b1f18b | |
parent | d50a30c8403bbfa31d6f650c167ddb5b5d1bddc5 (diff) |
Make password export plugin require password if enabled
-rw-r--r-- | plugins/password_export/password_export.py | 7 |
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"): |