Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bodypheo/cab7931991d48cb021b2a115d3f286cf to your computer and use it in GitHub Desktop.
Save bodypheo/cab7931991d48cb021b2a115d3f286cf to your computer and use it in GitHub Desktop.
  • sudo vim /home/vinnyfs89/.local/share/applications/telegramdesktop.desktop

You will see something like this:

[Desktop Entry]                                                                                                                                                         
 Version=1.0                                                                                                                                                             
 Name=Telegram Desktop                                                                                                                                                   
 Comment=Official desktop application for the Telegram messaging service                                                                                                 
 TryExec=/opt/telegram/telegram                                                                                                                                          
 Exec=/opt/telegram/telegram -- %u                                                                                                                                       
 Icon=telegram                                                                                                                                                           
 Terminal=false                                                                                                                                                          
 StartupWMClass=TelegramDesktop                                                                                                                                          
 Type=Application                                                                                                                                                        
 Categories=Network;InstantMessaging;Qt;                                                                                                                                 
 MimeType=x-scheme-handler/tg;                                                                                                                                           
 X-Desktop-File-Install-Version=0.23        

Change Exec=/opt/telegram/telegram -- %u to Exec=env QT_IM_MODULE=xim /opt/telegram/telegram -- %u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment