Ubuntu:如何显示系统托盘图标?systray

1. 问题说明

Ubuntu 11版本开始,默认关闭了托盘图标的显示,需要手动执行命令或额外工具配置,添加到白名单。

Ubuntu 13.04更彻底,默认配置根本没有托盘图标,除了java和wine等几个系统自带的程序可以显示,

其它任何应用程序都不能显示,以前的命令也不支持了,例如QQ也显示不了了。

Ubuntu 14.04 取消了系统托盘白名单机制,导致使用传统系统托盘技术的程序无法显示出托盘图标,dconf-editor也无力解决这个问题。

Ubuntu Unity桌面目前使用的技术是indicator-application-service。

那么如何继续让传统程序显示托盘图标呢?下面是解决方法。

2. 解决方法:Ubuntu 12.04 系列版本

(1)执行下列命令:

sudo apt-get install libappindicator1

sudo apt-add-repository ppa:gurqn/systray-trusty

sudo apt-get update

sudo apt-get install unity

(2)重启系统,或 logout/login

参考:

http://blog.sina.com.cn/s/blog_b394f4e70101es6u.html

https://launchpad.net/~gurqn/+archive/ubuntu/systray-trusty

http://lightdm.lofter.com/post/459eb_6951a

3. 解决方法:Ubuntu 14.04 系列版本

(1)执行下列命令:

sudo apt-add-repository ppa:fixnix/indicator-systemtray-unity

sudo apt-get update

sudo apt-get install indicator-systemtray-unity

(2)重启系统,或 logout/login

参考:

http://askubuntu.xxi.vn/questions/612912/how-to-re-enable-the-systray-indicator-panel-after-latest-updates

说明:

1、Ubuntu的缺省桌面是unity,上面的方法是解决unity显示方法。

2、Ubuntu可以安装gnome桌面,使用gnome classic也可以显示图标:

sudo apt-get install gnome