prof7bit/TorChat

Support for empathy/telepathy via telepathy-haze

SamRH opened this issue · 3 comments

It would be cool if support for telepathy/empathy could be added. I don't think it is too difficult, however documentation appears to be sparse. Reading through this bug report it looks like a profile and manager file need to be created;

~/.local/share/telepathy/managers/haze.manager
~/.local/share/mission-control/profiles/torchat.profile

telepathy-haze cannot cope with the second hypen in the ID.
Remove that and it seems to work.

diff --git a/src/purple/purpletorchat.lpr b/src/purple/purpletorchat.lpr
index 53444c7..3899787 100644
--- a/src/purple/purpletorchat.lpr
+++ b/src/purple/purpletorchat.lpr
@@ -1147,7 +1147,7 @@ begin
    minor_version := PURPLE_MINOR_VERSION;
    plugintype := PURPLE_PLUGIN_PROTOCOL;
    priority := PURPLE_PRIORITY_DEFAULT;
-    id := 'prpl-prof7bit-torchat';
+    id := 'prpl-prof7bittorchat';
    name := 'TorChat';
    version := PChar(SOFTWARE_VERSION);
    summary := 'TorChat Protocol';

If you use Empathy you may need to run:
mc-tool add haze/prof7bittorchat torchat string:account=Tor

to see your account. The KDE Telepathy client automatically creates an account KCM.

I couldn't get it to work. Do I need to do anything apart from installing torchat2 and running mc-tool for it to work (in empathy)?

[Sam@sam-laptop TorChat-torchat2]$ grep 'id := ' src/purple/purpletorchat.lpr
    id := 'prpl-prof7bittorchat';
[Sam@sam-laptop TorChat-torchat2]$ make all
<snip> -- successful 
19107 lines compiled, 1.4 sec 
3 warning(s) issued
5 note(s) issued
make[1]: Leaving directory `/home/Sam/Downloads/TorChat-torchat2/src/purple'
[Sam@sam-laptop TorChat-torchat2]$ sudo make install
make -C src/purple install
make[1]: Entering directory `/home/Sam/Downloads/TorChat-torchat2/src/purple'
mkdir -p /usr/lib/purple-2
install --mode=0644 ../../bin/libpurpletorchat.so /usr/lib/purple-2
make[1]: Leaving directory `/home/Sam/Downloads/TorChat-torchat2/src/purple'
[Sam@sam-laptop TorChat-torchat2]$ mc-tool add haze/prof7bittorchat torchat string:account=Tor
mc-tool add: Protocol 'prof7bittorchat' not found on CM 'haze' 

killall mission-control-5 so it reloads what libpurple supports.