GNU bug report logs - #38262
Alternative DuckDuckGo default search engine patch

Previous Next

Package: gnuzilla;

Reported by: Amin Bandali <bandali <at> gnu.org>

Date: Mon, 18 Nov 2019 19:23:01 UTC

Severity: normal

Done: Amin Bandali <bandali <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Amin Bandali <bandali <at> gnu.org>
To: 38262 <at> debbugs.gnu.org
Subject: bug#38262: Alternative DuckDuckGo default search engine patch
Date: Mon, 18 Nov 2019 14:21:58 -0500
[ Testing whether this reply results in a new
  ticket being created on the GNU Bug Tracker;
  please ignore ]

Amin Bandali <bandali <at> gnu.org> writes:

> [ this message is mostly just to test bug-gnuzilla’s integration with
>   the GNU Bug Tracker; feel free to ignore ]
>
> Besides b5a0119537e8a7417d147b0b29f85f9012a32d40 (on the 68 branch), it
> seems the following simpler/shorter change to makeicecat also works:
>
>>From 4c57445eeb4705a0cf84186d72e58729d31ebc77 Mon Sep 17 00:00:00 2001
> From: Amin Bandali <bandali <at> gnu.org>
> Date: Sat, 16 Nov 2019 16:35:14 -0500
> Subject: [PATCH] Shorter patch to make DuckDuckGo the default search engine
>
> ---
>  makeicecat | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/makeicecat b/makeicecat
> index 4ff3e64..0e233b2 100755
> --- a/makeicecat
> +++ b/makeicecat
> @@ -176,7 +176,11 @@ EOF
>  sed "s%https://www.mozilla.org/legal/privacy/%https://$LEGALINFOURL%" -i ./browser/app/profile/firefox.js ./toolkit/content/aboutRights.xhtml
>  
>  # Copy custom ddg search plugin
> -find |grep -e ddg.xml -e duckduckgo.*.xml | xargs -i cp $DATA/searchplugins/duckduckgo.xml {}
> +# find |grep -e ddg.xml -e duckduckgo.*.xml | xargs -i cp $DATA/searchplugins/duckduckgo.xml {}
> +
> +# Make DuckDuckGo the default search engine
> +sed '/searchDefault/s/: \".*\"/: "DuckDuckGo"/g' -i browser/components/search/extensions/list.json
> +sed '/visibleDefaultEngines/{n; s/"ddg",//; s/\"/"ddg", "/}'  -i browser/components/search/extensions/list.json
>  
>  # Sanitize lists
>  for file in $(find |grep searchplugins/list.txt)




This bug report was last modified 5 years and 46 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.