Pidgin and GNOME3
GNOME3 comes with Telepathy/Empathy integration. However, I'm mainly a Pidgin user because Telepathy/Empathy lacks of per-account proxy settings. I always force my IMs to go through a proxy in VPN regardless where I am, but not for other apps, so telepathy/empathy is out of the equation.
Anyway , pidgin users who are like me, here is a little present for y'all.
Pidgin GNOME3 Integration Extension
Just copy the
The extension utilize pidgin's dbus API, so it'll need pidgin to be running. I only did some rough test with it only on my Fedora 15 machine, but I believe it should work ok everywhere else.
Now for me to get some sleep XD.
Update: For some reason unknown to me, my git repos dissappeared from fedorapeople.org/git. The code is now hosted here: https://github.com/kagesenshi/gnome-shell-extensions-pidgin. To install, create a
Anyway , pidgin users who are like me, here is a little present for y'all.
gnomeshell@pidgin.im
folder into your ~/.local/share/gnome-shell/extensions/
and restart your gnome-shell. The extension utilize pidgin's dbus API, so it'll need pidgin to be running. I only did some rough test with it only on my Fedora 15 machine, but I believe it should work ok everywhere else.
Now for me to get some sleep XD.
Update: For some reason unknown to me, my git repos dissappeared from fedorapeople.org/git. The code is now hosted here: https://github.com/kagesenshi/gnome-shell-extensions-pidgin. To install, create a
pidgin@gnome-shell-extensions.gnome.org
directory in ~/.local/share/gnome-shell/extensions
, copy the 2 files into it and restart gnome-shell. Sorry for the broken link.
Comments
what i did is simply move all my chats to a different workspace
probably the auto-move-windows extension in the gnome-shell-extensions git might help in moving them automatically.
http://fpaste.org/836e/
yeah I noticed that this morning, apparently conversation references is 0 for a new chat window, causing pidgin to crash.
I just updated the code to trigger opening new popup when ConversationCreated instead of ReceivedImMsg.
Looks like its working here, hope it'll work there too
Thanks for testing!!
http://fpaste.org/0TYZ/
need info on how to reproduce ..
btw .. i dont understand C coredumps, so the paste are not useful ..
what might be useful are the gnome-shell outputs in ~/.xsession-errors ..
anyway, i just pushed an update to the extension, it now uses pidgin.png as icon if theres no buddyicon for current chat .. pidgin crashed if the extension requested for icon with ID 0
that problem might have been related to yours ..
What do you think? What could be the problem?
thats weird .. it doesnt happen here.. at first i thought its due to unicode, but i made it receive some japanese texts but that appears correctly.
can you figure out a way for me to reproduce?
try out different pidgin settings / different languages for example and see which works and which not ..
i've tested it with different protocols. I figures out that, the problem appears when i use the MSN protocol. The others, XMPP & ICQ is working fine.
I'll test with different languages as you told.
hurm ... can you try this?:
in extension.js, and replace _fixText function with
function _fixText(text) {
return text;
}
and see whether that makes any difference to you ?
i think i figured out the issue .. pidgin text returns html, but the notification expected valid pango markup. failure from the html to be valid xml caused the message to dissappear.
I've committed an update which strips out any html, we'll lose formatting though, but imo, the notifications doesnt need to be nicely formatted.
let _marker = text.substr(1,3);
if (_marker == "OTR") return 'OTR Encrypted'
else
return _text;
the OTR messages will be replaced with 'OTR Encrypted' which is more convenient.
The proper way would be to find a solution to get the clear text messages that are sent, and not the ecrypted ones, but I am not familiar with LibPurple, so a patch will still be needed because many people use OTR, also this will happen in gajim too, and probably Empathy if they even get to OTR soon.
This will show the right messages because the displayed messages are not encrypted like the sent ones.
cool, thanks for figuring that out
do you have a working patch? .. care to share?
i'm pushing the extension to the official gnome-shell-extensions git repo, hopefully it'll get in.
thanks!
Thanks! :D
Massimo
// imports.gettext.bindtextdomain('gnome-shell-extensions', metadata.localedir);
Because I was getting an error in lg, it says:
Failed to evaluate main function: Error invoking bindtextdomain, at argument 2 (location): Object is not a string, cannot convert to UTF-8
This is a compatibility issue because I removed the '3.0.0.2' from metadata.json or the extension will not start, if you set it to '3.0' it will. On Fedora 15b, and on ubuntu the gnome-shell version is not 3.0.0.2 so the extension will not load by default.
I will still test it and tell you if something comes up.
// imports.gettext.bindtextdomain('gnome-shell-extensions', metadata.localedir);
Because I was getting an error in lg, it says:
Failed to evaluate main function: Error invoking bindtextdomain, at argument 2 (location): Object is not a string, cannot convert to UTF-8
I found it through lookinglass...
thanks a ton for this extension...
http://dl.dropbox.com/u/28438/Screenshot.png
git://fedorapeople.org /
404 - No such project
(sorry with my english)
I tried to install, but there is nothing package in fedorapeople git, there is another site?
Repeat, excuseme with my english
Miaky
Would be nice if you could post a new link.
sorry been away for a while, a bit too busy with $dayjob.
Yeah seems like the link is broken, i'm not sure what happened with fp.o/git but anyway i've pushed this to github.
https://github.com/kagesenshi/gnome-shell-extensions-pidgin
The hack-patches repo is at http://izhar.fedorapeople.org/git/hack-patches.git/
still wondering what happened with fp.o/git that caused my repos to disappear.
how can i get the the chat shell?
this extension is really nice, but I've a question. Is it possible to disable this icon which is shown in the notification array? Because while chatting with 5 people I have 5 icons in the notification array which really sucks. But all in all I love this extension.
"TypeError: TelepathyClient.Notification is undefined"
I'm using gnome-shell 3.1.3, what could be the cause?
I had to adjust the version number in the metadata.json file, and then it started working beautifully.
Thanks a bunch. I like how the comments work on your blog too, very nice.