ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

ვრცლად

Adding custom search engine to Thunderbird

  • 12 პასუხი
  • 5 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 6 ნახვა
  • ბოლოს გამოეხმაურა StirkRK

Hello!

I'm using Thunderbird 52.5.0 (64-bit) on Debian Stretch.

So I am following https://support.mozilla.org/en-US/kb/add-search-engine-open-search to add a custom search engine to Thunderbird. (I want to add DDG as instructed at https://duck.co/help/desktop/thunderbird but for now I am following the support article.)

This is the google.xml https://pastebin.com/yRaXyJXb But I still can't see Google search engine in Preferences -> General -> Default Search Engine list. Am I missing something?

Any pointers will be really helpful.

Thank you!

Hello! I'm using Thunderbird 52.5.0 (64-bit) on Debian Stretch. So I am following https://support.mozilla.org/en-US/kb/add-search-engine-open-search to add a custom search engine to Thunderbird. (I want to add DDG as instructed at https://duck.co/help/desktop/thunderbird but for now I am following the support article.) This is the google.xml https://pastebin.com/yRaXyJXb But I still can't see Google search engine in Preferences -> General -> Default Search Engine list. Am I missing something? Any pointers will be really helpful. Thank you!

ჩასწორების თარიღი: , ავტორი: Avinash Sonawane

გადაწყვეტა შერჩეულია

1. Create a searchplugins folder in the profile folder, and copy into it the desired xml files such as ddg.xml, google.xml etc. 2. When you launch TB, the added search engines are not visible in Options, as expected. 3. Close TB and rename search.json.mozlz4 in the profile folder to search.json.mozlz4.OLD; a new search.json.mozlz4 is created when TB is launched, and now the added search engines are available in Options.

პასუხის ნახვა სრულად 👍 3

ყველა პასუხი (12)

I used the Google Search add-on. It creates its own searchplugins folder into which you can put the ddg xml file.

Zenos said

I used the Google Search add-on.

Thanks for the addon suggestion. But I really don't want to install yet another addon for the problem which has a direct knowledge base page https://support.mozilla.org/en-US/kb/add-search-engine-open-search

As long as the above mentioned page suggests a particular way I would like to stick to it please! ;)

Avinash Sonawane said

Zenos said
I used the Google Search add-on.

Thanks for the addon suggestion. But I really don't want to install yet another addon for the problem which has a direct knowledge base page https://support.mozilla.org/en-US/kb/add-search-engine-open-search

As long as the above mentioned page suggests a particular way I would like to stick to it please! ;)


Then use the XML file it suggests instead of one you like from somewhere else. They are not the same.

Make sure you follow the case of the folder names. UNIX/Linux operating systems use case in folder names unlike windows. searchplugins is not the same as Searchplugins.

Ensure searchplugins is on the same level in your profile as mail and imapmail

Note that setting the default search engine is done in preferences > General. The heart stuff on Duck Duck go is some years old.

Matt said

Avinash Sonawane said
Zenos said
I used the Google Search add-on.

Thanks for the addon suggestion. But I really don't want to install yet another addon for the problem which has a direct knowledge base page https://support.mozilla.org/en-US/kb/add-search-engine-open-search

As long as the above mentioned page suggests a particular way I would like to stick to it please! ;)


Then use the XML file it suggests instead of one you like from somewhere else. They are not the same.

Yes. They are the same! I don't know why you are saying they aren't. Can you please carefully look at the pastebin link I have provided?

PS - If you are thinking about xmlns attribute then it's there at KB article provided link! Ctrl+U should reveal that!

Matt said

Make sure you follow the case of the folder names. UNIX/Linux operating systems use case in folder names unlike windows. searchplugins is not the same as Searchplugins.

Again, if you would carefully look at that pastebin link you would have noticed it's searchplugins (all lower case) exactly what KB has suggested.

Matt said

Ensure searchplugins is on the same level in your profile as mail and imapmail

Same. Please have a look at the pastebin link.

Matt said

Note that setting the default search engine is done in preferences > General.

Yes, I kinda mentioned that in my original post.

Matt said

The heart stuff on Duck Duck go is some years old.

As I said, not interested in DDG for now. Just following the Knowledge Base article. So it's Google. (For now.)

How stupid of me. Not to realize the orphaned line in the XML file you uploaded was something other than some sort of error.,

This is line 1 of what you posted after to orphan line

<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">

This is line 1 of the text from bwintons blog. <SearchPlugin>

I do not think I need to go further to identify they are not the same, so this will be last post to this topic.

Did you verify your profile path using the show button in the troubleshooting information on the help menu? Or reading what it says in the profiles.ini file?

Have you restarted Thunderbird so it can read the XML file in the startup of the program? I think I recall that for about 5 years ago when I actually did this.

Matt said

How stupid of me. Not to realize the orphaned line in the XML file you uploaded was something other than some sort of error.,

It's okay. :) Thank you for taking time to helping me out though. :)

Matt said

Did you verify your profile path using the show button in the troubleshooting information on the help menu? Or reading what it says in the profiles.ini file?

Yes, I did. Currently my Thunderbird installation has only one profile. The default one.

Matt said

Have you restarted Thunderbird so it can read the XML file in the startup of the program?

Yes, I did. A couple of times actually. But still can't see Google in search engines' list.

შერჩეული გადაწყვეტა

1. Create a searchplugins folder in the profile folder, and copy into it the desired xml files such as ddg.xml, google.xml etc. 2. When you launch TB, the added search engines are not visible in Options, as expected. 3. Close TB and rename search.json.mozlz4 in the profile folder to search.json.mozlz4.OLD; a new search.json.mozlz4 is created when TB is launched, and now the added search engines are available in Options.

That's it! Thank you very much! This solved the issue.

sfhowes said

3. Close TB and rename search.json.mozlz4 in the profile folder to search.json.mozlz4.OLD; a new search.json.mozlz4 is created when TB is launched, and now the added search engines are available in Options.

Can you please let us know how did you figure out this workaround?

Avinash Sonawane said

Can you please let us know how did you figure out this workaround?

The question came up a few months ago in the mozilla.support.thunderbird newsgroup, and when I realized the old instructions didn't work after TB 45, I searched and found the key tip on this site.

BTW clearly this is not how we want user to set the custom search engine. So I thought of filing a bug report but found an existing one instead. https://bugzilla.mozilla.org/show_bug.cgi?id=1427093

I have left comment linking this Mozilla Support Forum question. I hope the bug gets resolved soon!

Avinash Sonawane said

BTW clearly this is not how we want user to set the custom search engine. So I thought of filing a bug report but found an existing one instead. https://bugzilla.mozilla.org/show_bug.cgi?id=1427093 I have left comment linking this Mozilla Support Forum question. I hope the bug gets resolved soon!

Nothing above worked for me until I commented out the first line in the XML file:

<$ cat ~/.thunderbird/m422kcn9.default/searchplugins/google.xml