File: deactivate_google_analytics.patch

package info (click to toggle)
jalview 2.11.4.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 445,392 kB
  • sloc: java: 365,549; xml: 2,989; sh: 1,511; perl: 336; lisp: 139; python: 116; makefile: 81; haskell: 60
file content (47 lines) | stat: -rw-r--r-- 2,027 bytes parent folder | download | duplicates (2)
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
Description: Turn off Google analytics call, relies on non-packaged software
Author: Pierre Gruet <pgt@debian.org>
Forwarded: not-needed
Last-Update: 2020-11-25

--- a/src/jalview/bin/Jalview.java
+++ b/src/jalview/bin/Jalview.java
@@ -750,20 +750,6 @@
           testoutput(argparser, Arg.WEBSERVICEDISCOVERY);
         }
 
-        boolean usagestats = !bootstrapArgs.getBoolean(Arg.NOUSAGESTATS);
-        if (aparser.contains("nousagestats"))
-          usagestats = false;
-        if (usagestats)
-        {
-          startUsageStats(desktop);
-          testoutput(argparser, Arg.NOUSAGESTATS);
-        }
-        else
-        {
-          Console.outPrintln("CMD [-nousagestats] executed successfully!");
-          testoutput(argparser, Arg.NOUSAGESTATS);
-        }
-
         boolean questionnaire = bootstrapArgs.getBoolean(Arg.QUESTIONNAIRE);
         if (aparser.contains("noquestionnaire"))
           questionnaire = false;
@@ -1611,7 +1597,6 @@
                     + "-questionnaire URL\tQueries the given URL for information about any Jalview user questionnaires.\n"
                     + "-noquestionnaire\tTurn off questionnaire check.\n"
                     + "-nonews\tTurn off check for Jalview news.\n"
-                    + "-nousagestats\tTurn off analytics tracking for this session.\n"
                     + "-sortbytree OR -nosortbytree\tEnable or disable sorting of the given alignment by the given tree\n"
                     // +
                     // "-setprop PROPERTY=VALUE\tSet the given Jalview property,
--- a/src/jalview/jbgui/GPreferences.java
+++ b/src/jalview/jbgui/GPreferences.java
@@ -1342,6 +1342,8 @@
     // Usage stats checkbox label
     usagestats.setText(
             MessageManager.getString("label.send_usage_statistics"));
+    usagestats.setSelected(false);
+    usagestats.setEnabled(false);
     usagestats.setFont(LABEL_FONT);
     usagestats.setHorizontalAlignment(SwingConstants.RIGHT);
     usagestats.setHorizontalTextPosition(SwingConstants.LEADING);