Using Telegram on Manjaro through Chrome

Using Telegram on Manjaro has always had the problem of being unable to input Chinese via gcin,Tried a few methods found online,like setting the QT_IM_MODULE path,although it was possible to switch to 'Ciyin',it still came out in English,some people say this method only works for the official version,but I tried it and still failed,in the end, I had no choice but to follow Line's approach,using Chrome to simulate an App。

2024/03/16 更新
  今天要用 Telegram 時跳出 Telegram For PC 被封鎖的訊息好像是違反 Chrome 的什麼規定後來又試了兩三個同性質 Extension都是直接連到 Telegram 的 Web 位址因此無法透過下面 讓 Telegram For PC 獨立運行 的作法來呼叫 Extension後來我索性試著直接同樣用 App 模式但改成連結到 Telegram 的 Web 位址結果也同樣可行因此新的作法就是略過下面的 安裝 Telegram For PC And 確認可以使用然後在 讓 Telegram For PC 獨立運行 的連結改成

google-chrome-stable --start-maximized --app='https://web.telegram.org'
# 如果不想最大化視窗,可以拿掉 --start-maximized。



安裝 Telegram For PC
  開啟 Chrome 並在「線上應用程式商店 (Chrome Web Store)」搜尋「Telegram For PC」及安裝

確認可以使用
  在 Chrome 右上角的「擴充功能」找到「Telegram For PC」點擊並登入確認可以正常使用

讓 Telegram For PC 獨立運行
  接下來就是仿照之前「讓 Manjaro 上的 Line (Chrome 擴充元件) Run Independently」這篇,製作一個 Telegram For PC 的啟動器。

1. 開啟「選單編輯器(MenuLibre)」,在「網際網路」項目中點選「+」以新增。

2. 依序設定下列欄位
◎ icon:如果電腦裡面沒有,可以上網下載 icon 後,放至固定目錄如:
  ”/usr/share/icons/telegram/” 或
  ”/home/你的ID/.local/share/icons/telegram/”。
◎ 標題:自行輸入。
◎ 說明:自行輸入
◎ 指令:輸入下列指令。

google-chrome-stable --start-maximized --app='chrome-extension://ndigigcelppbfkojeoejcailklonljah/index.html'
# ndigigcelppbfkojeoejcailklonljah 這串可以在 app 的網址中找到。
# 如果不想最大化視窗,可以拿掉 --start-maximized。

◎ 最後點選左上方的「儲存啟動器」。

3. 之後就可以在選單中搜尋到 Telegram,並可以直接執行。



【參考連結】

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.