下面給大家介紹下如何將添加Pidgin圖標到gnome shell信息托盤處。
#1,首先,我們創建下面的目錄:
~/.local/share/gnome-shell/extensions/[email protected]
#2,然後復制下面的兩個文件到上述目錄:
metadata.json
{ "shell-version": ["3.0.2"], "uuid": "[email protected]", "name": "Pidgin Status Icon", "description": "Integrates Pidgin Messaging Client into the status bar" }
extension.js
// Creates a system status notification icon for pidgin const StatusIconDispatcher = imports.ui.statusIconDispatcher; // gnome-shell extension entry point function main() { StatusIconDispatcher.STANDARD_TRAY_ICON_IMPLEMENTATIONS['pidgin'] = 'pidgin'; }
然後,我們按住ALT+F2,輸入“r”,重新加載GNOME Shell即可。