EionRobb / purple-googlechat

A Google Chat protocol plugin for libpurple/Pidgin/bitlbee/whatever
GNU General Public License v3.0
112 stars 13 forks source link

Pidgin on Windows doesn't show the extension #53

Open galmok opened 2 years ago

galmok commented 2 years ago

I followed the setup for Pidgin but this extension doesn't show up.

Pidgin version: Pidgin 2.14.10 (libpurple 2.14.10) Windows 10 Pro.

EionRobb commented 2 years ago

Just to check, you're not seeing it in the protocol dropdown when you make a new account? eg image

galmok commented 2 years ago

I am not seeing it neither as an extension nor as a protocol choice. My list of protocols is also much smaller than what you show in your screenshot.

EionRobb commented 2 years ago

Also to double-check, you've followed https://github.com/EionRobb/purple-googlechat#windows and copied the libgooglechat.dll to Program Files\Pidgin\plugins, and the other two dlls to the Program Files\Pidgin folder?

galmok commented 2 years ago

I did just that, and I double checked twice.. But poison is in Program Files (x86). If it is in the other folder as well, then i chose the wrong one. I'll check later.

galmok commented 2 years ago

I have now reinstalled Pidgin and the plugin files, but GoogleChat still isn't an option. Seeing as I have way less protocols to chose from than shown in your screenshot makes me think there must be another file (or files) that should be installed/replaced, but which files would that be?

alexolog commented 2 years ago

Try getting a debug log and check which plugins get loaded:

  1. Run "%ProgramFiles(x86)%\Pidgin\pidgin.exe" -d > pidgin-debug.log 2>&1
  2. Wait for things to settle and exit Pidgin
  3. Open the newly generated pidgin-debug.log in your viewer/editor of choice and look for DLL loading messages.
galmok commented 2 years ago

That was helpful, but I am not sure what I did wrong:

(18:06:37) plugins: probing C:\Program Files (x86)\Pidgin\plugins\libgooglechat.dll (18:06:38) plugins: C:\Program Files (x86)\Pidgin\plugins\libgooglechat.dll is not loadable: `C:\Program Files (x86)\Pidgin\plugins\libgooglechat.dll': The specified procedure could not be found.

This is from earlier in the log:

(18:06:37) winpidgin: GTK+ :2.16.6 (18:06:37) winpidgin: winpidgin_init end (18:06:37) wpurple: wpurple_init start (18:06:37) wpurple: libpurple version: 2.14.10 (18:06:37) wpurple: Glib:2.28.8

galmok commented 2 years ago

I checked with ProcessHacker and neither of the two support libraries were loaded.

Then I remembered that I did not overwrite the existing "libglib-json-1.0.dll" with the downloaded one (I figured same name = same library), but that cannot be true, as the pidgin provided library is 273KB and the downloaded one is 367KB.

I'll try replacing the pidgin provided library with the one I downloaded, keeping a backup.

galmok commented 2 years ago

That was the issue. I had to overwrite the pidgin provided libglib-json-1.0.dll with the downloaded one.

Now I can see the GoogleChat protocol as an option, but I am completely unable to find the cookie to use. The login process I get is nowhere equal to what the video shows.

alexolog commented 2 years ago

Here's what I use with FF:

  1. Open a FF private window (CTRL-SHIFT-P)
  2. Paste in the URL https://tinyurl.com/yydeb9vz
  3. Type in your GMail address and password. The page will sit there loading but go nowhere
  4. Press F12 to open Developer Tools, navigate to the "storage" tab
  5. Look at "Cookies" for "accounts.google.com and click on the "oauth_code" cookie
  6. Right-click on the value in the pane below and select "copy"
  7. Paste the text into the Pidgin window, editing it to remove the cookie name and quotes.

* Login may not be necessary if the cookie is already set.

If you use Chrome, there is a great comment on the video page by "Eric TF Bat", starting with "The instructions in this video and the various comments here are all incomplete or unintelligible."