Description: visnotes is a plug-in for all KDE users who want to have their pidgin being more integrated into KDE. It informs the users about status changes and new messages with pop-ups generated by knotify.
I was searching for a plug-in like this one but couldn't find anything fitting my needs. Other plug-ins sent messages to knotify via the terminal, but this prevented knotify to e.g. display the buddy's icon. visnotes uses D-Bus to send all the informations. Screenshots are appended. The look of the pop-up is determined by your Plasma-Theme.
To compile visnotes, you need Glib and D-Bus (+ GLib-DBus-Bindings).Last changelog:
v0.1: initial release v0.1.1: updated configure v0.1.2: updated configure v0.2: working on kde4.4
hi Robert,
now it works on KDE 4.4!
The only problem is there is no buddy icon in the notification:
http://img210.imageshack.us/img210/7358/visnotes.png
i got this in the debug window:
(18:47:06) core-schmidt-visnotes: Adrian (adrianxxxx@gmail.com), no icon
(18:47:06) core-schmidt-visnotes: notify()
(18:47:06) core-schmidt-visnotes: result = 14
(18:49:36) core-schmidt-visnotes: (brb) lUiS (l_xxxxx@hotmail.com), use icon, len = 2159
(18:49:36) core-schmidt-visnotes: notify()
(18:49:36) core-schmidt-visnotes: result = 15
(19:04:08) core-schmidt-visnotes: Antonio Jxx (xxxxx@gmail.com), use icon, len = 2067
(19:04:08) core-schmidt-visnotes: notify()
(19:04:08) core-schmidt-visnotes: result = 16
Hi,
i know this, because the format of the image data sent to org.freedesktop.Notifications (== KDE4.4) is different from the one sent to org.kde.VisualNotifications. I will fix that in the next release.
No more such black notifications in KDE 4.4.
http://www.kde-apps.org/CONTENT/content-pre2/118256-2.png
libnotify notifications in KDE 4.4 are displayed as KDE notifications.
the color of the notification is determined by your plasma theme, so if you don't have a black theme, then there will be no black notification.
currently i use KDE 4.3 so the libnotify plugin doesn't work for me (but i know this)
After compiling and installing the plugin I activated it in pidgin.
But no notification appears when I receive a message or a buddy changes his status.
I run pidgin with debug options.
I gaves me following output when I sent a message:
(22:28:08) g_log: purple_buddy_icon_get_data: assertion `icon != NULL' failed
(22:28:08) core-schmidt-visnotes: User@home (user@jabber.org), len = 2452769536; data == NULL
(22:28:08) core-schmidt-visnotes: time: 22:28:08 (tlen = 8)
(22:28:08) core-schmidt-visnotes: no icon
(22:28:08) core-schmidt-visnotes: org_kde_VisualNotifications_notify()
(22:28:08) core-schmidt-visnotes: GError: The name org.kde.VisualNotifications was not provided by any .service files
(22:28:08) core-schmidt-visnotes: result = 0
(22:28:08) g_log: purple_conversation_get_data: assertion `conv != NULL' failed
opensuse packages can be found in my repository:
http://download.opensuse.org/repositories/home:/javilete/
unfortunately, there is no notifications as said framas.
I used this plugin under gnome, and it loaded fine, although it shouldn't. i guess you know what you're doing and run it under kde4. Could you please print the debug output when you are loading the plugin?
i will have a look at this...
Now I can compile without export CFLAGS. :)
I get those debug messages:
(00:16:39) core-schmidt-visnotes: Piki }---------->>> Caerse esta permitido, levantarse es obligatorio (piki@hotmail.com), len = 2234; data != NULL
(00:16:39) core-schmidt-visnotes: time: 00:16:39 (tlen = 8)
(00:16:39) core-schmidt-visnotes: use icon
(00:16:39) core-schmidt-visnotes: org_kde_VisualNotifications_notify()
(00:16:39) core-schmidt-visnotes: GError: The name org.kde.VisualNotifications was not provided by any .service files
I'm using KDE4.4 RC1 on OpenSuse 11.2.
Okay, i think i found out what the problem is. kde 4.4 doesn't seem to provide the service 'org.kde.VisualNotifications' anymore like the versions before. that means, you cannot use this plugin under kde 4.4. i don't have kde 4.4 installed, but maybe i can try it out later in a vm. kde 4.4 should provide the service 'org.freedesktop.notifications', which is dbus' generic notifications system, but using this in the plugin, that would mean you cannot use the plugin in kde < 4.4, but in every desktop implementing this notification system.
I like it very much, that's what I needed!
Now we just need Pidgin to start using libappindicator:
https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators
hi Robert,
Flag -I/usr/include/dbus-1.0 is missing.
In "configure" at line 12063 you need to change this:
pkg_cv_PIDGIN_CFLAGS=`$PKG_CONFIG --cflags "pidgin purple" 2>/dev/null`
to this:
pkg_cv_PIDGIN_CFLAGS=`$PKG_CONFIG --cflags "pidgin purple dbus-1" 2>/dev/null`
Hi javier,
i guess you mean i should add the include path? I am not really sure why, but imo the include paths are already in there. I updated the configure so it looks for glib-devel and glib-dbus-devel (configure didn't do this before in v0.1). It should compile well now, if everything is installed properly.
@ all: pls comment! does it work for you and are there any problems? do you miss a feature?
hello,
unfortunately the flag is missing in 0.1.1, too. Doing a
sed -e 's/pkg_cv_PIDGIN_CFLAGS=`$PKG_CONFIG --cflags "pidgin purple\" 2>\/dev\/null`/pkg_cv_PIDGIN_CFLAGS=`$PKG_CONFIG --cflags "pidgin purple dbus-1" 2>\/dev\/null`/' -i configure
let the package build ony my arch system, but I don't think this is the "usual" way.
hello,
unfortunately the flag is missing in 0.1.1, too. Doing a
sed -e 's/pkg_cv_PIDGIN_CFLAGS=`$PKG_CONFIG --cflags "pidgin purple\" 2>\/dev\/null`/pkg_cv_PIDGIN_CFLAGS=`$PKG_CONFIG --cflags "pidgin purple dbus-1" 2>\/dev\/null`/' -i configure
let the package build ony my arch system, but I don't think this is the "usual" way.
Hi all,
i updated visnotes another time (v0.1.2). As you said, the configure file didn't include the search paths for dbus-1. Now, when you compile it, all necessary search paths are given to gcc as an argument when you invoke make. I hope this is working for you now. Sorry for the inconveniences (i think i know the autotools much better now ...)
Ratings & Comments
19 Comments
There's a bug in visinotes: https://bugzilla.redhat.com/show_bug.cgi?id=559955
hi Robert, now it works on KDE 4.4! The only problem is there is no buddy icon in the notification: http://img210.imageshack.us/img210/7358/visnotes.png i got this in the debug window: (18:47:06) core-schmidt-visnotes: Adrian (adrianxxxx@gmail.com), no icon (18:47:06) core-schmidt-visnotes: notify() (18:47:06) core-schmidt-visnotes: result = 14 (18:49:36) core-schmidt-visnotes: (brb) lUiS (l_xxxxx@hotmail.com), use icon, len = 2159 (18:49:36) core-schmidt-visnotes: notify() (18:49:36) core-schmidt-visnotes: result = 15 (19:04:08) core-schmidt-visnotes: Antonio Jxx (xxxxx@gmail.com), use icon, len = 2067 (19:04:08) core-schmidt-visnotes: notify() (19:04:08) core-schmidt-visnotes: result = 16
Hi, i know this, because the format of the image data sent to org.freedesktop.Notifications (== KDE4.4) is different from the one sent to org.kde.VisualNotifications. I will fix that in the next release.
No more such black notifications in KDE 4.4. http://www.kde-apps.org/CONTENT/content-pre2/118256-2.png libnotify notifications in KDE 4.4 are displayed as KDE notifications.
the color of the notification is determined by your plasma theme, so if you don't have a black theme, then there will be no black notification. currently i use KDE 4.3 so the libnotify plugin doesn't work for me (but i know this)
After compiling and installing the plugin I activated it in pidgin. But no notification appears when I receive a message or a buddy changes his status. I run pidgin with debug options. I gaves me following output when I sent a message: (22:28:08) g_log: purple_buddy_icon_get_data: assertion `icon != NULL' failed (22:28:08) core-schmidt-visnotes: User@home (user@jabber.org), len = 2452769536; data == NULL (22:28:08) core-schmidt-visnotes: time: 22:28:08 (tlen = 8) (22:28:08) core-schmidt-visnotes: no icon (22:28:08) core-schmidt-visnotes: org_kde_VisualNotifications_notify() (22:28:08) core-schmidt-visnotes: GError: The name org.kde.VisualNotifications was not provided by any .service files (22:28:08) core-schmidt-visnotes: result = 0 (22:28:08) g_log: purple_conversation_get_data: assertion `conv != NULL' failed
opensuse packages can be found in my repository: http://download.opensuse.org/repositories/home:/javilete/ unfortunately, there is no notifications as said framas.
I used this plugin under gnome, and it loaded fine, although it shouldn't. i guess you know what you're doing and run it under kde4. Could you please print the debug output when you are loading the plugin? i will have a look at this...
Now I can compile without export CFLAGS. :) I get those debug messages: (00:16:39) core-schmidt-visnotes: Piki }---------->>> Caerse esta permitido, levantarse es obligatorio (piki@hotmail.com), len = 2234; data != NULL (00:16:39) core-schmidt-visnotes: time: 00:16:39 (tlen = 8) (00:16:39) core-schmidt-visnotes: use icon (00:16:39) core-schmidt-visnotes: org_kde_VisualNotifications_notify() (00:16:39) core-schmidt-visnotes: GError: The name org.kde.VisualNotifications was not provided by any .service files I'm using KDE4.4 RC1 on OpenSuse 11.2.
The same output on Arch using KDE from svn.
Okay, i think i found out what the problem is. kde 4.4 doesn't seem to provide the service 'org.kde.VisualNotifications' anymore like the versions before. that means, you cannot use this plugin under kde 4.4. i don't have kde 4.4 installed, but maybe i can try it out later in a vm. kde 4.4 should provide the service 'org.freedesktop.notifications', which is dbus' generic notifications system, but using this in the plugin, that would mean you cannot use the plugin in kde < 4.4, but in every desktop implementing this notification system.
Then I will wait for 4.4 version :)
I like it very much, that's what I needed! Now we just need Pidgin to start using libappindicator: https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators
hi Robert, Flag -I/usr/include/dbus-1.0 is missing. In "configure" at line 12063 you need to change this: pkg_cv_PIDGIN_CFLAGS=`$PKG_CONFIG --cflags "pidgin purple" 2>/dev/null` to this: pkg_cv_PIDGIN_CFLAGS=`$PKG_CONFIG --cflags "pidgin purple dbus-1" 2>/dev/null`
Hi javier, i guess you mean i should add the include path? I am not really sure why, but imo the include paths are already in there. I updated the configure so it looks for glib-devel and glib-dbus-devel (configure didn't do this before in v0.1). It should compile well now, if everything is installed properly. @ all: pls comment! does it work for you and are there any problems? do you miss a feature?
hello, unfortunately the flag is missing in 0.1.1, too. Doing a sed -e 's/pkg_cv_PIDGIN_CFLAGS=`$PKG_CONFIG --cflags "pidgin purple\" 2>\/dev\/null`/pkg_cv_PIDGIN_CFLAGS=`$PKG_CONFIG --cflags "pidgin purple dbus-1" 2>\/dev\/null`/' -i configure let the package build ony my arch system, but I don't think this is the "usual" way.
hello, unfortunately the flag is missing in 0.1.1, too. Doing a sed -e 's/pkg_cv_PIDGIN_CFLAGS=`$PKG_CONFIG --cflags "pidgin purple\" 2>\/dev\/null`/pkg_cv_PIDGIN_CFLAGS=`$PKG_CONFIG --cflags "pidgin purple dbus-1" 2>\/dev\/null`/' -i configure let the package build ony my arch system, but I don't think this is the "usual" way.
i guess the best way to compile is: $ export CFLAGS="-I/usr/include/dbus-1.0" $ ./configure $ make # make install
Hi all, i updated visnotes another time (v0.1.2). As you said, the configure file didn't include the search paths for dbus-1. Now, when you compile it, all necessary search paths are given to gcc as an argument when you invoke make. I hope this is working for you now. Sorry for the inconveniences (i think i know the autotools much better now ...)