unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 84d9b1767ef38662cf76b6f15207fc4877676ac6 2651 bytes (raw)
name: gnu/packages/patches/goldendict-remove-check-for-update.patch 	 # note: path name is non-authoritative(*)

 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
 
https://github.com/NixOS/nixpkgs/blob/217b221/pkgs/applications/misc/goldendict/0001-dont-check-for-updates.patch
Disable calling home for updates.

diff --git i/config.cc w/config.cc
index 04b63f5..7a453d9 100644
--- i/config.cc
+++ w/config.cc
@@ -182,7 +182,7 @@ Preferences::Preferences():
   pronounceOnLoadPopup( false ),
   useInternalPlayer( InternalPlayerBackend::anyAvailable() ),
   internalPlayerBackend( InternalPlayerBackend::defaultBackend() ),
-  checkForNewReleases( true ),
+  checkForNewReleases( false ),
   disallowContentFromOtherSites( false ),
   enableWebPlugins( false ),
   hideGoldenDictHeader( false ),
@@ -867,8 +867,8 @@ Class load() THROW_SPEC( exError )
       c.preferences.proxyServer.systemProxyPassword = proxy.namedItem( "systemProxyPassword" ).toElement().text();
     }

-    if ( !preferences.namedItem( "checkForNewReleases" ).isNull() )
-      c.preferences.checkForNewReleases = ( preferences.namedItem( "checkForNewReleases" ).toElement().text() == "1" );
+    //if ( !preferences.namedItem( "checkForNewReleases" ).isNull() )
+    //  c.preferences.checkForNewReleases = ( preferences.namedItem( "checkForNewReleases" ).toElement().text() == "1" );

     if ( !preferences.namedItem( "disallowContentFromOtherSites" ).isNull() )
       c.preferences.disallowContentFromOtherSites = ( preferences.namedItem( "disallowContentFromOtherSites" ).toElement().text() == "1" );
@@ -1819,9 +1819,9 @@ void save( Class const & c ) THROW_SPEC( exError )
       proxy.appendChild( opt );
     }

-    opt = dd.createElement( "checkForNewReleases" );
-    opt.appendChild( dd.createTextNode( c.preferences.checkForNewReleases ? "1" : "0" ) );
-    preferences.appendChild( opt );
+    //opt = dd.createElement( "checkForNewReleases" );
+    //opt.appendChild( dd.createTextNode( c.preferences.checkForNewReleases ? "1" : "0" ) );
+    //preferences.appendChild( opt );

     opt = dd.createElement( "disallowContentFromOtherSites" );
     opt.appendChild( dd.createTextNode( c.preferences.disallowContentFromOtherSites ? "1" : "0" ) );
diff --git i/preferences.cc w/preferences.cc
index 72c3147..7e48f00 100644
--- i/preferences.cc
+++ w/preferences.cc
@@ -314,6 +314,7 @@ Preferences::Preferences( QWidget * parent, Config::Class & cfg_ ):
            this, SLOT( customProxyToggled( bool ) ) );

   ui.checkForNewReleases->setChecked( p.checkForNewReleases );
+  ui.checkForNewReleases->setEnabled( false );
   ui.disallowContentFromOtherSites->setChecked( p.disallowContentFromOtherSites );
   ui.enableWebPlugins->setChecked( p.enableWebPlugins );
   ui.hideGoldenDictHeader->setChecked( p.hideGoldenDictHeader );

debug log:

solving 84d9b1767e ...
found 84d9b1767e in https://yhetil.org/guix-patches/20210614062656.4499-1-sarg@sarg.org.ru/ ||
	https://yhetil.org/guix-patches/20210703141333.31876-1-sarg@sarg.org.ru/ ||
	https://yhetil.org/guix-patches/20210703173222.6441-1-sarg@sarg.org.ru/ ||
	https://yhetil.org/guix-patches/20220328082654.24539-1-sarg@sarg.org.ru/

applying [1/1] https://yhetil.org/guix-patches/20210614062656.4499-1-sarg@sarg.org.ru/
diff --git a/gnu/packages/patches/goldendict-remove-check-for-update.patch b/gnu/packages/patches/goldendict-remove-check-for-update.patch
new file mode 100644
index 0000000000..84d9b1767e

Checking patch gnu/packages/patches/goldendict-remove-check-for-update.patch...
Applied patch gnu/packages/patches/goldendict-remove-check-for-update.patch cleanly.

skipping https://yhetil.org/guix-patches/20210703141333.31876-1-sarg@sarg.org.ru/ for 84d9b1767e
skipping https://yhetil.org/guix-patches/20210703173222.6441-1-sarg@sarg.org.ru/ for 84d9b1767e
skipping https://yhetil.org/guix-patches/20220328082654.24539-1-sarg@sarg.org.ru/ for 84d9b1767e
index at:
100644 84d9b1767ef38662cf76b6f15207fc4877676ac6	gnu/packages/patches/goldendict-remove-check-for-update.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).