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

来源:互联网 发布:js作用域链和原型链 编辑:程序博客网 时间:2024/05/20 18:31

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. U
buntu 14.04 以上版本 (方法1:在线安装补丁包)


(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

4. Ubuntu 14.04 以上版本 (方法2:下载安装补丁包)


可以直接下载deb补丁包,使用sudo dpkg -i 命令进行安装。


下载地址:

http://ppa.launchpad.net/fixnix/indicator-systemtray-unity/ubuntu/pool/main/i/indicator-systemtray-unity/


注意:不同名称的deb对应不同的Ubuntu版本

trusty14.04utopic14.10vivid15.04wily15.10xenial16.04  


0 0
原创粉丝点击