When using Telegram in Manjaro, there has been a problem of being unable to input Chinese through gcin.,I have tried several methods on the Internet,For example, setting the QT_IM_MODUL path,Although you can switch to "Ciyin",But what comes out is still in English,Some people also say that this method only applies to the official version,But I tried and failed,In the end, I had to compare Line,Simulate it as an app through Chrome。
2024/03/16 Update
今天要用 Telegram 時,跳出 Telegram For PC 被封鎖的訊息,好像是違反 Chrome 的什麼規定。後來又試了兩三個同性質 Extension,都是直接連到 Telegram 的 Web 位址,因此無法透過下面 Let Telegram For PC run independently 的作法來呼叫 Extension。後來我索性試著直接同樣用 App 模式但改成連結到 Telegram 的 Web 位址,結果也同樣可行,因此新的作法就是略過下面的 Install Telegram For PC 跟 Confirm that it can be used,然後在 Let Telegram For PC run independently 的連結改成:
google-chrome-stable --start-maximized --app='https://web.telegram.org' # 如果不想最大化視窗,可以拿掉 --start-maximized。
Install Telegram For PC
Open Chrome and go to the "Online App Store" (Chrome Web Store)"search"Telegram For PC” and installation。
Confirm that it can be used
Find "Telegram For PC" in "Extensions" in the upper right corner of Chrome,Click and log in to confirm that it can be used normally。
Let Telegram For PC run independently
"The next step is to imitate the previous one"Let Line on Manjaro (Chrome extension) Operate independently"This,Make a launcher for Telegram For PC。
1. Open the Menu Editor (MenuLibre),Click "+" in the "Internet" item to add。
2. Set the following fields in order
◎ icon:If there is no such thing in the computer,You can download the icon online,Put it in a fixed directory such as:
”/usr/share/icons/telegram/” Or
”/home/yourID/.local/share/icons/telegram/”。
◎ Title:Enter it yourself。
◎ Description:Enter it yourself
◎ Command:Enter the following command。
google-chrome-stable --start-maximized --app='chrome-extension://ndigigcelppbfkojeoejcailklonljah/index.html' # ndigigcelppbfkojeoejcailklonljah 這串可以在 app 的網址中找到。 # 如果不想最大化視窗,可以拿掉 --start-maximized。
◎Finally click "Save Launcher" on the upper left。
3. Then you can search for Telegram in the menu,And can be executed directly。
【參考連結】
- Old Sen Chang Tan >> Let Line on Manjaro (Chrome extension) Operate independently
- How to make Google Chrome occupy the entire screen and hide the control interface when it is opened? / How to make Google Chrome open to fill the entire screen and hide the control interface? – What to eat with pudding?
- List of Chromium Command Line Switches « Peter Beverloo
- linux – Solve the iBus Chinese input problem of Telegram Desktop and other Qt software under GNOME Wayland – personal article – SegmentFault Sifu
- [Linux] Refill event record