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 位址,結果也同樣可行,Therefore, the new approach isSkip the following Install Telegram For PC And Make sure it can be used,Then in 讓 Telegram For PC 獨立運行 the link change to:
google-chrome-stable --start-maximized --app='https://web.telegram.org' # 如果不想最大化視窗,可以拿掉 --start-maximized。
Install Telegram For PC
Open Chrome and go to 'Online App Store' (Chrome Web Store) Search for 'Telegram For PC' and install it。
Make sure it can be used
In the top right corner of Chrome, under 'Extensions', find 'Telegram For PC',Click and log in to make sure it works properly。

讓 Telegram For PC 獨立運行
Next is to follow the previous '讓 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,並可以直接執行。

【參考連結】
- 老森常譚 » 讓 Manjaro 上的 Line (Chrome 擴充元件) Run Independently
- 如何讓Google Chrome開啟時就佔滿整個螢幕並隱藏控制介面? / How to make Google Chrome open to fill the entire screen and hide the control interface? – 布丁布丁吃什麼?
- List of Chromium Command Line Switches « Peter Beverloo
- Linux – Solving the iBus Chinese Input Issue for Telegram Desktop and Other Qt Applications on GNOME Wayland – Personal Article – SegmentFault
- [Linux] Reinstallation Notes








Leave a Reply