我为 Telegram 创建了一个 .desktop 文件,但它不像其他文件一样显示标签。我用 Android Studio 做了同样的事情,效果很好。以下是我在 telegram.desktop 中输入的内容:
[Desktop Entry]
Version=1.0
Name=Telegram
Comment=Telegram
Exec=/usr/local/Telegram/Telegram
Icon=/usr/local/Telegram/telegram.png
Terminal=false
Type=Application
Categories=Messaging;
答案1
只需运行电报,它就会自动创建一个 telegramdesktop.desktop 文件,如下所示
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
#path file
Exec=/home/username/download/telegram/Telegram -- %u
Icon=telegram
Terminal=false
StartupWMClass=Telegram
Type=Application
Categories=Network;
MimeType=x-scheme-handler/tg;
X-Desktop-File-Install-Version=0.22