歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> linux中建立webqq客戶端

linux中建立webqq客戶端

日期:2017/3/1 16:24:20   编辑:關於Linux

http://blog.csdn.net/pipisorry/article/details/39854265

ubuntu12.04中用Prism建立web qq 客戶端,linux下最好用的QQ

Ubuntu中安裝QQ,但是騰訊出品的QQ for Linux,功能太爛,可以考慮WebQQ,但使用webqq得一直開著浏覽器,可以用Prism +web qq打造桌面客戶端。

一、安裝WebRunner

Prism是Mozilla公司出品的擴展方式,是以獨立程序的方式來運行頁面。prism已停用。

1.到https://addons.mozilla.org/en-US/firefox/addon/mozilla-labs-prism/(Not available for Firefox 32.0+) http://prism.mozillalabs.com/下載Prism,Prism分為兩個版本,一個是火狐擴展方式,一個是獨立程序的方式。推薦用獨立程序的方式 (Prism STANDALONE APPLICATION)。

或者用 sudo apt-get install prism 命令安裝。

2.運行prism

URL:輸入 http://web.qq.com

Name:WEB QQ (隨便)

Create Shortcuts:勾上 desktop

Icon Settings:自定義 圖標,默認會讀取WEB的圖標

點擊OK,桌面就會生成WEB QQ,然後右鍵 屬性,權限,允許以程序執行文件

這樣一個以獨立進程web qq 客戶端就完成啦。

二、安裝 Alltray系統托盤工具

AllTray是一個可以將程序的窗口最小化到系統托盤的小軟件,任務欄提醒功能,有新消息來的時候會彈出提示。,主要為那些沒有原生提供最小化到系統托盤功能的程序而准備的。

目前,AllTray可以在 GNOME、KDE、Xfce、Fluxbox、WindowMaker等環境中使用。

AllTray功能:

1.將程序窗口最小化到系統托盤

2.自定義設置托盤圖標

3.自定義設置信息提示及刷新頻率

AllTray安裝:

1. sudo apt-get install alltray

2. 在 Ubuntu軟件中心 搜索 alltray 安裝。

AllTray使用:

【Ubuntu系統托盤工具:AllTray】

定義圖標和新消息提醒功能

用記事本打開桌面的WEB QQ,在 Exec= 前面添加 “/usr/bin/alltray” 和-i “/home/administrator/桌面/webqq.png” -t 5 -s -st 記得要用空格隔開

其中/home/administrator/桌面/webqq.png 是圖標地址,得自己手動修改。

-s 在首次啟動時不隱藏主窗口。

-i 使用一個 PNG 文件做為托盤區圖標,後接 PNG 文件路徑。看來這裡需要知道 WebQQ 的圖標位置,用任意文本編輯器打開桌面上先前創建的 .desktop 文件,查看 Icon= 一行即可得知。

-l 使用較大圖標,當圖標尺寸大於 24*24 時使用。

-st 允許在所有可見工作區顯示。也是我們想要的。

-t 當窗口標題變化時顯示提示,後接提示顯示時間,單位秒。通過這個選項可以實現來新消息時的彈出提示,因為 WebQQ 會在有新消息時改變窗口標題。

這樣web qq 客戶端就完成了。

在 Ubuntu較新版本中, 對頂部面板右上角的通知區域(系統托盤)采用了白名單制度,只有支持 Indicators 並位於白名單的部分程序才會被顯示在系統托盤中,目前支持的程序有: Java apps, Mumble, Wine applications, Skype 和 hp-systray 。除些之外的 DropBox ,aMule 等大量程序都不會被顯示在系統托盤中,不過可以通過以下方法來解除這一限制:【Ubuntu/系統托盤圖標】
- 命令行方式:解禁所有程序
gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

或者只解禁部分程序,把 YOUR_APPLICATION 替換成你需要解禁的程序。
gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray', 'YOUR_APPLICATION']"

- GUI 方式:安裝 dconf-tools
sudo apt-get install dconf-tools
在終端中輸入 dconf-editor ,然後找到 desktop > unity > panel ,把 systray-whitelist 的值改為 ['all'] 。最後注銷並重新登錄就可以了。

- 還原:

命令行下用以下命令
gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray']"
GUI 下在 dconf-editor 中點擊 Set to default 按鈕。

這種方法還適合百度HI,MSN,新浪UC,阿裡旺旺,雅虎通,校內通,Gtalk,各大郵箱,google文檔,Twitter等…………

ps:

Warning:【https://wiki.mozilla.org/Prism】

Prism is no longer developed by Mozilla Labs, although this documentation will still be useful to those using WebRunner (see next paragraph). There are now two alternatives:

The Prism code was picked up by Matthew Gertner who started a company to continue its open source development under the nameWebRunner. See his blog post at http://www.salsitasoft.com/blog/2011/02/09/prism-is-now-webrunner/

Mozilla Labs itself started a new project called Chromeless. See their blog post at http://mozillalabs.com/blog/2011/02/prism-is-now-chromeless/

This was a great project, it's a shame it's no longer available.Prism was a very good idea, but it suffered from a serious design flaw: Each app created with Prism generated a separate profile directory, with considerable duplication of files, which was a mammoth waste of disk space.

Chrome offers similar functionality in its core, without Prism's drawbacks.

Windows版的,因為僅僅需要QQ基本的聊天功能,且喜歡簡潔。軟件街發布過SimpleQQ,采用WebQQ,不用打開浏覽器的情況下登陸QQ,實現了桌面化的基本功能。

from:http://blog.csdn.net/pipisorry/article/details/39854265

ref:Prism – 建立web qq 客戶端 [linux]

Copyright © Linux教程網 All Rights Reserved