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:在線安裝補丁包)

(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版本
trusty	14.04
utopic	14.10
vivid	        15.04
wily	        15.10
xenial	16.04
 	 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM