I have downloaded .tar.xz file from Telegram's official website. I extracted the Telegram folder from the archive to my Downloads
folder. The archive has just 2 executable files namely Telegram
and Updater
. The menu entry was showing for Telegram until I moved the Telegram
folder to /opt
folder. After that the menu entry is not showing. The .desktop
file for Telegram is by default stored in ~/.local/share/applications
. I changed the executable path in the .desktop
file to the path inside the /opt
folder as follows:
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
TryExec=/opt/Telegram/Telegram
Exec=/opt/Telegram/Telegram -- %u
Icon=telegram
Terminal=false
StartupWMClass=TelegramDesktop
Type=Application
Categories=Chat;Network;InstantMessaging;Qt;
MimeType=x-scheme-handler/tg;
Keywords=tg;chat;im;messaging;messenger;sms;tdesktop;
X-GNOME-UsesNotifications=true
I am not sure whether I need to move the .desktop file somewhere else since I moved my Telegram folder to /opt
or is it something wrong in the .desktop
file.
Thank you.
.desktop
files for such applications be stored in.local/share/applications
or somewhere else?r
and then hit Enter. If you are the only user, it doesn't matter where you put desktop entries. But if multiple users use the machine and you want to make sure all users can use that application, put it in/usr/share/applications
else let it be in~/.local/share/applications
. Also, since you have already solved the issue, consider posting an answer which after 2 days you can mark as accepted.