下面给大家介绍下如何将添加Pidgin图标到gnome shell信息托盘处。
#1,首先,我们创建下面的目录:
~/.local/share/gnome-shell/extensions/pidgin.status@gnome-shell.morsi.org
#2,然后复制下面的两个文件到上述目录:
metadata.json
{
“shell-version”: [“3.0.2”],
“uuid”: “pidgin.status@gnome-shell.morsi.org”,
“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即可。