如何禁用 gnome-shell 的通知区域?

ect*_*yte 7 gnome ati 11.10 notification-area

我想禁用 gnome-shell 中的通知区域,因为它会导致我的计算机出现大量图形故障。我使用 tint2 作为我的系统托盘。有没有办法做到这一点?

ben*_*nwh 2

我不确定这会产生什么副作用(如果有的话),但这是一种方法:

sudo gedit /usr/share/gnome-shell/js/ui/main.js
Run Code Online (Sandbox Code Playgroud)

找到以下行(对我来说是 217):

notificationDaemon = new NotificationDaemon.NotificationDaemon();
Run Code Online (Sandbox Code Playgroud)

注释掉它:

//notificationDaemon = new NotificationDaemon.NotificationDaemon();
Run Code Online (Sandbox Code Playgroud)

保存文件,按 Alt-F2 并输入r以重新加载 GNOME Shell。托盘现在应该消失了