歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> SHELL編程 >> 添加Pidgin圖標到Gnome Shell信息托盤處

添加Pidgin圖標到Gnome Shell信息托盤處

日期:2017/2/28 16:12:56   编辑:SHELL編程

下面給大家介紹下如何將添加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即可。

Copyright © Linux教程網 All Rights Reserved