把ubuntu的消息通知显示位置改回右上角
1.安装apt-src软件包
$ sudo aptitude install apt-src
2.安装notify-osd的源码
$ mkdir notify $ cd notify $ sudo apt-src install notify-osd
3.改写源码文件
$ cd notify-osd-0.9.29/src $ sudo nano defauts.c
按Ctrl+w查找SLOT_ALLOCATION_FIXED,会找到以下两行
// use fixed slot-allocation for async. and sync. bubbles
self->slot_allocation = SLOT_ALLOCATION_FIXED;
然后改写成
// use dynamic slot-allocation for async. and sync. bubbles
self->slot_allocation = SLOT_ALLOCATION_DYNAMIC;
4.编译构建deb包
$ sudo apt-src build notify-osd
5.安装deb包
$ sudo dpkg -i notify-osd_0.9.29-0ubuntu2_i386.deb
如果想省事儿,可以直接复制src目录下编译生成的notify-osd二进制文件粘贴到/usr/lib/notify-osd/文件夹中,覆盖原来的notify-osd,在此之前可以先备份一下原来的文件