A replacement prpl for Google Chat in Pidgin/libpurple to support the proprietary protocol that Google uses for its "Google Chat" service.
This plugin is written by Eion Robb based on the old Hangouts plugin written by Eion Robb and Mike 'Maiku' Ruprecht.
To compile, just do the standard make && sudo make install dance. You'll need development packages for libpurple, libjson-glib, glib and libprotobuf-c to be able to compile.
Run the following commands from a terminal
#!sh
sudo apt-get install -y libpurple-dev libjson-glib-dev libglib2.0-dev libprotobuf-c-dev protobuf-c-compiler git make;
git clone https://github.com/EionRobb/purple-googlechat/ && cd purple-googlechat;
make && sudo make install
json-glib-devel libpurple-devel glib2-devel libpurple-devel protobuf-c-devel protobuf-c-compiler
The easiest way to install is using the Windows installer (purple-googlechat.msi) available from the latest release. This automatically installs the plugin, required dependency DLLs, and protocol icons into Pidgin.
Alternatively, for manual installation:
libgooglechat.dll from the latest release and copy it into your C:\Program Files (x86)\Pidgin\plugins folder.C:\Program Files (x86)\Pidgin folder (not the plugins subfolder).C:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\16\googlechat.pngC:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\22\googlechat.pngC:\Program Files (x86)\Pidgin\pixmaps\pidgin\protocols\48\googlechat.pngThe plugin uses cookies from a logged in browser to authenticate
There's also a handy extension https://github.com/mautrix/googlechat/issues/93#issuecomment-1689792422
You may also need to use a fresh "Guest Profile" in Chrome if the above doesn't work
Grab the cookie values as above, then set them with
account <account id> set COMPASS_token <value>
account <account id> set SSID_token <value>
account <account id> set SID_token <value>
account <account id> set OSID_token <value>
account <account id> set HSID_token <value>
Set the password on the account manually in the format COMPASS=<value>&SSID=<value>&SID=<value>&OSID=<value>&HSID=<value> (making sure not to encode = in the value as %3D)
Say "Thanks" by buying me a coffee