summaryrefslogtreecommitdiffstats
path: root/stuff/enigmail_remove-configure-delay.patch
blob: 2d6facc2016e95b0aa31d22b266b6a6102dbeb3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
commit bb325a5481dc0d06d6e4211b9d62a9c36510b19c
gpg: Signature made Wed 08 Jul 2020 05:04:01 PM CEST
gpg:                using EDDSA key 95409F2944B1C6D44C6B49D53E6CA28DAAF8DD14
gpg: Good signature from "Daniel Baumann <daniel.baumann@progress-linux.org>" [ultimate]
Primary key fingerprint: 9540 9F29 44B1 C6D4 4C6B  49D5 3E6C A28D AAF8 DD14
Author: Daniel Baumann <daniel.baumann@progress-linux.org>
Date:   Wed Jul 8 17:03:47 2020 +0200

    Removing configure delay on first use.
    
    Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>

diff --git a/debian/patches/progress-linux/0002-remove-configure-delay.patch b/debian/patches/progress-linux/0002-remove-configure-delay.patch
new file mode 100644
index 0000000..6218e38
--- /dev/null
+++ b/debian/patches/progress-linux/0002-remove-configure-delay.patch
@@ -0,0 +1,25 @@
+Author: Daniel Baumann <daniel.baumann@progress-linux.org>
+Description: Removing configure delay on first use.
+
+diff -Naurp enigmail.orig/package/configure.jsm enigmail/package/configure.jsm
+--- enigmail.orig/package/configure.jsm
++++ enigmail/package/configure.jsm
+@@ -194,18 +194,6 @@ var EnigmailConfigure = {
+   configureEnigmail: async function(win, startingPreferences) {
+     EnigmailLog.DEBUG("configure.jsm: configureEnigmail()\n");
+ 
+-    if (!EnigmailStdlib.hasConfiguredAccounts()) {
+-      EnigmailLog.DEBUG("configure.jsm: configureEnigmail: no account configured. Waiting 60 seconds.\n");
+-
+-      // try again in 60 seconds
+-      EnigmailTimer.setTimeout(
+-        function _f() {
+-          EnigmailConfigure.configureEnigmail(win, startingPreferences);
+-        },
+-        60000);
+-      return;
+-    }
+-
+     let oldVer = EnigmailPrefs.getPref("configuredVersion");
+ 
+     let vc = Cc["@mozilla.org/xpcom/version-comparator;1"].getService(Ci.nsIVersionComparator);
diff --git a/debian/patches/series b/debian/patches/series
index acc0a9f..63b1fec 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -18,3 +18,4 @@
 0017-avoid-cmp-in-favor-of-__lt__.patch
 0019-Avoid-weird-Preprocessor.py-misbehavior.patch
 progress-linux/0001-disable-setup-wizard.patch
+progress-linux/0002-remove-configure-delay.patch