summaryrefslogtreecommitdiff
path: root/overlays/keepassxc
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-02-13 20:02:34 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2025-02-13 20:02:34 +0100
commit10b7a66bdf7181026914e753c5260a5adef04214 (patch)
tree0c75073e34eef3da2519a9c071a9e32c1d222dfc /overlays/keepassxc
parent17dd0a467339a51b1b89456ade9ebf4a2e494537 (diff)
downloadnixos-10b7a66bdf7181026914e753c5260a5adef04214.tar
nixos-10b7a66bdf7181026914e753c5260a5adef04214.tar.gz
nixos-10b7a66bdf7181026914e753c5260a5adef04214.tar.bz2
nixos-10b7a66bdf7181026914e753c5260a5adef04214.tar.xz
nixos-10b7a66bdf7181026914e753c5260a5adef04214.zip
...
Diffstat (limited to 'overlays/keepassxc')
-rw-r--r--overlays/keepassxc/database-open-dialog.patch47
-rw-r--r--overlays/keepassxc/default.nix2
2 files changed, 26 insertions, 23 deletions
diff --git a/overlays/keepassxc/database-open-dialog.patch b/overlays/keepassxc/database-open-dialog.patch
index 4916dc1b..dff84846 100644
--- a/overlays/keepassxc/database-open-dialog.patch
+++ b/overlays/keepassxc/database-open-dialog.patch
@@ -1,7 +1,8 @@
1diff -u3 -r source.orig/src/browser/BrowserService.cpp source/src/browser/BrowserService.cpp 1diff --git a/src/browser/BrowserService.cpp b/src/browser/BrowserService.cpp
2--- source.orig/src/browser/BrowserService.cpp 2025-01-27 20:55:04.128198171 +0100 2index 60412b5a..c0497d91 100644
3+++ source/src/browser/BrowserService.cpp 2025-01-27 21:16:07.068959077 +0100 3--- a/src/browser/BrowserService.cpp
4@@ -249,7 +249,7 @@ 4+++ b/src/browser/BrowserService.cpp
5@@ -249,7 +249,7 @@ QJsonObject BrowserService::createNewGroup(const QString& groupName)
5 return result; 6 return result;
6 } 7 }
7 8
@@ -10,7 +11,7 @@ diff -u3 -r source.orig/src/browser/BrowserService.cpp source/src/browser/Browse
10 tr("KeePassXC - Create a new group"), 11 tr("KeePassXC - Create a new group"),
11 tr("A request for creating a new group \"%1\" has been received.\n" 12 tr("A request for creating a new group \"%1\" has been received.\n"
12 "Do you want to create this group?\n") 13 "Do you want to create this group?\n")
13@@ -422,7 +422,7 @@ 14@@ -422,7 +422,7 @@ QList<Entry*> BrowserService::confirmEntries(QList<Entry*>& entriesToConfirm,
14 15
15 m_dialogActive = true; 16 m_dialogActive = true;
16 updateWindowState(); 17 updateWindowState();
@@ -19,7 +20,7 @@ diff -u3 -r source.orig/src/browser/BrowserService.cpp source/src/browser/Browse
19 20
20 connect(m_currentDatabaseWidget, SIGNAL(databaseLockRequested()), &accessControlDialog, SLOT(reject())); 21 connect(m_currentDatabaseWidget, SIGNAL(databaseLockRequested()), &accessControlDialog, SLOT(reject()));
21 22
22@@ -512,7 +512,7 @@ 23@@ -512,7 +512,7 @@ QString BrowserService::storeKey(const QString& key)
23 QString id; 24 QString id;
24 25
25 do { 26 do {
@@ -28,7 +29,7 @@ diff -u3 -r source.orig/src/browser/BrowserService.cpp source/src/browser/Browse
28 connect(m_currentDatabaseWidget, SIGNAL(databaseLockRequested()), &keyDialog, SLOT(reject())); 29 connect(m_currentDatabaseWidget, SIGNAL(databaseLockRequested()), &keyDialog, SLOT(reject()));
29 keyDialog.setWindowTitle(tr("KeePassXC - New key association request")); 30 keyDialog.setWindowTitle(tr("KeePassXC - New key association request"));
30 keyDialog.setLabelText(tr("You have received an association request for the following database:\n%1\n\n" 31 keyDialog.setLabelText(tr("You have received an association request for the following database:\n%1\n\n"
31@@ -535,7 +535,7 @@ 32@@ -535,7 +535,7 @@ QString BrowserService::storeKey(const QString& key)
32 33
33 contains = db->metadata()->customData()->contains(CustomData::BrowserKeyPrefix + id); 34 contains = db->metadata()->customData()->contains(CustomData::BrowserKeyPrefix + id);
34 if (contains) { 35 if (contains) {
@@ -37,7 +38,7 @@ diff -u3 -r source.orig/src/browser/BrowserService.cpp source/src/browser/Browse
37 tr("KeePassXC - Overwrite existing key?"), 38 tr("KeePassXC - Overwrite existing key?"),
38 tr("A shared encryption key with the name \"%1\" " 39 tr("A shared encryption key with the name \"%1\" "
39 "already exists.\nDo you want to overwrite it?") 40 "already exists.\nDo you want to overwrite it?")
40@@ -595,7 +595,7 @@ 41@@ -595,7 +595,7 @@ QJsonObject BrowserService::showPasskeysRegisterPrompt(const QJsonObject& public
41 const auto existingEntries = getPasskeyEntriesWithUserHandle(rpId, userId, keyList); 42 const auto existingEntries = getPasskeyEntriesWithUserHandle(rpId, userId, keyList);
42 43
43 raiseWindow(); 44 raiseWindow();
@@ -46,7 +47,7 @@ diff -u3 -r source.orig/src/browser/BrowserService.cpp source/src/browser/Browse
46 confirmDialog.registerCredential(username, rpId, existingEntries, timeout); 47 confirmDialog.registerCredential(username, rpId, existingEntries, timeout);
47 48
48 auto dialogResult = confirmDialog.exec(); 49 auto dialogResult = confirmDialog.exec();
49@@ -612,7 +612,7 @@ 50@@ -612,7 +612,7 @@ QJsonObject BrowserService::showPasskeysRegisterPrompt(const QJsonObject& public
50 // If no entry is selected, show the import dialog for manual entry selection 51 // If no entry is selected, show the import dialog for manual entry selection
51 auto selectedEntry = confirmDialog.getSelectedEntry(); 52 auto selectedEntry = confirmDialog.getSelectedEntry();
52 if (!selectedEntry) { 53 if (!selectedEntry) {
@@ -55,7 +56,7 @@ diff -u3 -r source.orig/src/browser/BrowserService.cpp source/src/browser/Browse
55 const auto result = passkeyImporter.showImportDialog(db, 56 const auto result = passkeyImporter.showImportDialog(db,
56 nullptr, 57 nullptr,
57 origin, 58 origin,
58@@ -683,7 +683,7 @@ 59@@ -683,7 +683,7 @@ QJsonObject BrowserService::showPasskeysAuthenticationPrompt(const QJsonObject&
59 const auto timeout = publicKeyOptions["timeout"].toInt(); 60 const auto timeout = publicKeyOptions["timeout"].toInt();
60 61
61 raiseWindow(); 62 raiseWindow();
@@ -64,7 +65,7 @@ diff -u3 -r source.orig/src/browser/BrowserService.cpp source/src/browser/Browse
64 confirmDialog.authenticateCredential(entries, rpId, timeout); 65 confirmDialog.authenticateCredential(entries, rpId, timeout);
65 auto dialogResult = confirmDialog.exec(); 66 auto dialogResult = confirmDialog.exec();
66 if (dialogResult == QDialog::Accepted) { 67 if (dialogResult == QDialog::Accepted) {
67@@ -760,7 +760,7 @@ 68@@ -760,7 +760,7 @@ void BrowserService::addPasskeyToEntry(Entry* entry,
68 69
69 // Ask confirmation if entry already contains a Passkey 70 // Ask confirmation if entry already contains a Passkey
70 if (entry->hasPasskey()) { 71 if (entry->hasPasskey()) {
@@ -73,7 +74,7 @@ diff -u3 -r source.orig/src/browser/BrowserService.cpp source/src/browser/Browse
73 tr("KeePassXC - Update passkey"), 74 tr("KeePassXC - Update passkey"),
74 tr("Entry already has a passkey.\nDo you want to overwrite the passkey in %1 - %2?") 75 tr("Entry already has a passkey.\nDo you want to overwrite the passkey in %1 - %2?")
75 .arg(entry->title(), passkeyUtils()->getUsernameFromEntry(entry)), 76 .arg(entry->title(), passkeyUtils()->getUsernameFromEntry(entry)),
76@@ -873,7 +873,7 @@ 77@@ -873,7 +873,7 @@ bool BrowserService::updateEntry(const EntryParameters& entryParameters, const Q
77 MessageBox::Button dialogResult = MessageBox::No; 78 MessageBox::Button dialogResult = MessageBox::No;
78 if (!browserSettings()->alwaysAllowUpdate()) { 79 if (!browserSettings()->alwaysAllowUpdate()) {
79 raiseWindow(); 80 raiseWindow();
@@ -82,7 +83,7 @@ diff -u3 -r source.orig/src/browser/BrowserService.cpp source/src/browser/Browse
82 tr("KeePassXC - Update Entry"), 83 tr("KeePassXC - Update Entry"),
83 tr("Do you want to update the information in %1 - %2?") 84 tr("Do you want to update the information in %1 - %2?")
84 .arg(QUrl(entryParameters.siteUrl).host(), username), 85 .arg(QUrl(entryParameters.siteUrl).host(), username),
85@@ -909,7 +909,7 @@ 86@@ -909,7 +909,7 @@ bool BrowserService::deleteEntry(const QString& uuid)
86 return false; 87 return false;
87 } 88 }
88 89
@@ -91,7 +92,7 @@ diff -u3 -r source.orig/src/browser/BrowserService.cpp source/src/browser/Browse
91 tr("KeePassXC - Delete entry"), 92 tr("KeePassXC - Delete entry"),
92 tr("A request for deleting entry \"%1\" has been received.\n" 93 tr("A request for deleting entry \"%1\" has been received.\n"
93 "Do you want to delete the entry?\n") 94 "Do you want to delete the entry?\n")
94@@ -1536,7 +1536,7 @@ 95@@ -1536,7 +1536,7 @@ QSharedPointer<Database> BrowserService::selectedDatabase()
95 } 96 }
96 } 97 }
97 98
@@ -100,10 +101,11 @@ diff -u3 -r source.orig/src/browser/BrowserService.cpp source/src/browser/Browse
100 int openDatabaseCount = browserEntrySaveDialog.setItems(databaseWidgets, m_currentDatabaseWidget); 101 int openDatabaseCount = browserEntrySaveDialog.setItems(databaseWidgets, m_currentDatabaseWidget);
101 if (openDatabaseCount > 1) { 102 if (openDatabaseCount > 1) {
102 int res = browserEntrySaveDialog.exec(); 103 int res = browserEntrySaveDialog.exec();
103diff -u3 -r source.orig/src/fdosecrets/objects/Prompt.cpp source/src/fdosecrets/objects/Prompt.cpp 104diff --git a/src/fdosecrets/objects/Prompt.cpp b/src/fdosecrets/objects/Prompt.cpp
104--- source.orig/src/fdosecrets/objects/Prompt.cpp 2025-01-27 20:55:04.135942791 +0100 105index e89cd499..347c98b8 100644
105+++ source/src/fdosecrets/objects/Prompt.cpp 2025-01-27 21:01:37.166710935 +0100 106--- a/src/fdosecrets/objects/Prompt.cpp
106@@ -313,7 +313,7 @@ 107+++ b/src/fdosecrets/objects/Prompt.cpp
108@@ -313,7 +313,7 @@ namespace FdoSecrets
107 if (!entries.isEmpty()) { 109 if (!entries.isEmpty()) {
108 QString app = tr("%1 (PID: %2)").arg(client->name()).arg(client->pid()); 110 QString app = tr("%1 (PID: %2)").arg(client->name()).arg(client->pid());
109 auto ac = new AccessControlDialog( 111 auto ac = new AccessControlDialog(
@@ -112,10 +114,11 @@ diff -u3 -r source.orig/src/fdosecrets/objects/Prompt.cpp source/src/fdosecrets/
112 connect(ac, &AccessControlDialog::finished, this, &UnlockPrompt::itemUnlockFinished); 114 connect(ac, &AccessControlDialog::finished, this, &UnlockPrompt::itemUnlockFinished);
113 connect(ac, &AccessControlDialog::finished, ac, &AccessControlDialog::deleteLater); 115 connect(ac, &AccessControlDialog::finished, ac, &AccessControlDialog::deleteLater);
114 ac->open(); 116 ac->open();
115diff -u3 -r source.orig/src/gui/DatabaseTabWidget.cpp source/src/gui/DatabaseTabWidget.cpp 117diff --git a/src/gui/DatabaseTabWidget.cpp b/src/gui/DatabaseTabWidget.cpp
116--- source.orig/src/gui/DatabaseTabWidget.cpp 2025-01-27 20:55:04.134589500 +0100 118index 805d4eab..4836199e 100644
117+++ source/src/gui/DatabaseTabWidget.cpp 2025-01-27 21:07:09.785284837 +0100 119--- a/src/gui/DatabaseTabWidget.cpp
118@@ -41,7 +41,7 @@ 120+++ b/src/gui/DatabaseTabWidget.cpp
121@@ -41,7 +41,7 @@ DatabaseTabWidget::DatabaseTabWidget(QWidget* parent)
119 : QTabWidget(parent) 122 : QTabWidget(parent)
120 , m_dbWidgetStateSync(new DatabaseWidgetStateSync(this)) 123 , m_dbWidgetStateSync(new DatabaseWidgetStateSync(this))
121 , m_dbWidgetPendingLock(nullptr) 124 , m_dbWidgetPendingLock(nullptr)
diff --git a/overlays/keepassxc/default.nix b/overlays/keepassxc/default.nix
index 25429a66..46b3a459 100644
--- a/overlays/keepassxc/default.nix
+++ b/overlays/keepassxc/default.nix
@@ -1,7 +1,7 @@
1{ final, prev, ... }: 1{ final, prev, ... }:
2{ 2{
3 keepassxc = prev.keepassxc.overrideAttrs (oldAttrs: { 3 keepassxc = prev.keepassxc.overrideAttrs (oldAttrs: {
4 patches = (oldAttrs.patches or []) ++ [ 4 patches = (oldAttrs.patches or []) ++ prev.lib.optional (prev.lib.versionAtLeast oldAttrs.version "2.7.9") [
5 ./database-open-dialog.patch 5 ./database-open-dialog.patch
6 ]; 6 ];
7 }); 7 });