Tdesktop: Official binary not showing window icon in Cinnamon bottom panel

Created on 29 Dec 2017  路  29Comments  路  Source: telegramdesktop/tdesktop

Related to #4231.

I removed the PPA version in favour of the official binary provided on https://telegram.org/dl/desktop/linux.

  1. I launched Telegram from the extracted folder on Linux Mint 18.3 Cinnamon
  2. Now I see a proper icon in the sound applications menu (great!)
  3. But I no longer see an icon for the window in the bottom panel

Can someone please try to reproduce it?

Thank you!

image

bug linux waiting for answer

Most helpful comment

This issue is about _window_ (taskbar) icon. If you're talking about _tray_ icon, this is not your issue.

All 29 comments

Hm, interesting, the icon appears if I manually create the following .desktop file:

orschiro@x230 ~/.local/share/applications $ cat telegramdesktop.desktop 
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
Exec=/home/orschiro/software/Telegram/Telegram -- %u
Icon=telegram
Terminal=false
StartupWMClass=TelegramDesktop
Type=Application
Categories=Network;InstantMessaging;Qt;
MimeType=x-scheme-handler/tg;

I don't know why the .desktop worked initially but now it doesn't any longer.

Hi there,
Have the same issue after recent updates, I am on Archlinux Mate desktop and the telegramdesktop.desktop does exist in my profile path...
The bug is super annoying since the system bar icon easily notifies you on unread messages you have in a cluttered desktop where the app window can be backgrounded...also weirdly enough the widow might completely disappear after the inactive period and if you go to meu/apps/telegram and relaunch it again you will see that the app indeed was active...also you can confirm this if you look for the process in bash

Edit: The icon disappeared again after reboot !!

Hi, I fixed this problem by editing ~/.local/share/applications/telegramdesktop.desktop file and adding this line before Exec=telegram-desktop:

TryExec=/usr/bin/telegram-desktop

You can replace the above path with the telegram's binary path.

this issue is still valid on 1.9.8?

@Aokromes yes :C, it's valid on 1.9.11 beta too (and on 1.9.10)

yes :C, it's valid on 1.9.11 beta too (and on 1.9.10)

Can you send .desktop file that app is created for you?

Where is it placed?

~/.local/share/applications/telegramdesktop.desktop

xepozz@xepozz-notebook:~$ cat ~/.local/share/applications/telegramdesktop.desktop
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
TryExec=/home/xepozz/袛芯泻褍屑械薪褌褘/Telegram/Telegram
Exec=/home/xepozz/袛芯泻褍屑械薪褌褘/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

Unpack this into ~/.local/share/icons and relogin (maybe just app restart will work)
place_icons.tar.gz

@xepozz so what?

Nothing happened

ls -l ~/.local/share/icons/hicolor/48x48/apps

xepozz@xepozz-notebook:~$ ls -l ~/.local/share/icons/hicolor/48x48/apps
total 24
-rwx------ 1 xepozz xepozz 6393 Apr 10  2019 appimagekit-staruml.png
-rw-rw-r-- 1 xepozz xepozz 1142 Feb 13  2019 application-x-msdownload.png
-rw-rw-r-- 1 xepozz xepozz 1142 Feb 13  2019 application-x-wine-extension-its.png
-rw-r--r-- 1 xepozz xepozz 3065 Mar  6 09:00 telegram.png
-rw-rw-r-- 1 xepozz xepozz 1142 Feb 13  2019 text-x-component.png

Do you still on mint 18.3? Can't reproduce on 19.3 :thinking:


cat /etc/os-release

NAME="Linux Mint"
VERSION="19.3 (Tricia)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 19.3"
VERSION_ID="19.3"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.ubuntu.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=tricia
UBUNTU_CODENAME=bionic

Which icon theme are you using?

image

Maybe I'm doing something wrong?
image

Was you tried to reboot the system multiple times?

Was you tried to reboot the system multiple times?

Just tried, works as expected

How can I erase all related data(configs, caches, etc.)?

~/.local/share/TelegramDesktop
~/.local/share/applications/telegramdesktop.desktop
~/.local/share/icons/telegram.png
~/.config/autostart/telegramdesktop.desktop
And icons that i sent you above

image
It didn't work

What didn't work? There are no window for window icon.

I deleted everything that you wrote above and installed again. Telegram starts in the background, but there is still no icon

This issue is about _window_ (taskbar) icon. If you're talking about _tray_ icon, this is not your issue.

no answer for over a month, closing.if this bug is still valid open a new ticket using updated version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mindstormer619 picture Mindstormer619  路  3Comments

Liudvikas picture Liudvikas  路  3Comments

slowaways picture slowaways  路  3Comments

hosseinab picture hosseinab  路  3Comments

abhyrz picture abhyrz  路  3Comments