I've used his patch, and it does work as advertised in Gloria Main. I have noticed that when I get a bubble with a large mount of text, as in an email notification, some of the text is chopped off at the bottom of my screen. I think this is because I don't use Gnome panels at all, and if I'm not mistaken, notify-osd positions its bubbles relative to a panel edge. Someone else can feel free to chime in and correct me on that.
If anybody spots any errors or knows a way to streamline this process, feel free to post here or shoot me a message and I'll make the changes.
This entire process takes place in a terminal. If you're afraid of using a terminal, I'm sorry to hear that, and maybe someone will make a script to automate this process.
Let's get started..
Open a terminal and start with the command
Code: Select all
mkdir notify
(You can use the text editor of your choice, gedit or whatever. If you opt for a different text editor, I'll leave it to you to create a file 'patch' and save it in the current directory. Simply skip this next step, and just copy and paste the code for the patch however you see fit. I prefer nano so I can stay right inside the terminal.)
***Enter the command
Code: Select all
touch patch && nano patch
Press CTRL-X to write the changes to the file, and press enter to save it to 'patch', which will save the file and then exit the nano text editor, taking you back to your terminal prompt.--- notify-osd-0.9.11/src/defaults.c 2009-05-28 23:18:56.000000000 +0200
+++ defaults.c 2009-05-28 23:14:13.000000000 +0200
@@ -2241,15 +2241,13 @@
/* workarea rectangle */
g_object_get (self, "desktop-left", &rect.x, NULL);
- g_object_get (self, "desktop-top", &rect.y, NULL);
+ g_object_get (self, "desktop-bottom", &rect.y, NULL);
g_object_get (self, "desktop-width", &rect.width, NULL);
g_object_get (self, "desktop-height", &rect.height, NULL);
}
*y = rect.y;
- *y += EM2PIXELS (defaults_get_bubble_vert_gap (self), self)
- - EM2PIXELS (defaults_get_bubble_shadow_size (self), self);
-
+ *y -= EM2PIXELS (defaults_get_bubble_min_height (self), self);
if (gtk_widget_get_default_direction () == GTK_TEXT_DIR_LTR)
{
*x = rect.x + rect.width;
Next, you'll need to grab a couple packages. The instructions at the original web-site use apt-src to download the notify-osd package from the repos, and I had to install that. I'm pretty sure the build-essential package is needed here, too, so grab that while you're at it if you don't already have it.
Install the apt-src package:
Code: Select all
sudo aptitude install build-essential apt-src
Code: Select all
sudo apt-src install notify-osd
Code: Select all
cd notify-osd-0.9.11/src/
Code: Select all
patch < ~/notify/patch
Code: Select all
sudo apt-src build notify-osd
Code: Select all
sudo dpkg -i notify-osd_0.9.11-0ubuntu3_i386.deb
Code: Select all
notify-send "This is a test."
***EDIT: Here is a link to the files that apt-src downloads, plus the patch, all in one tar.lzma archive. You should be able to pick right up from applying the patch step.
http://rapidshare.com/files/266374718/notify.tar.lzma