telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.35k stars 5.24k forks source link

Official binary not showing window icon in Cinnamon bottom panel #4253

Closed orschiro closed 4 years ago

orschiro commented 6 years ago

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

orschiro commented 6 years ago

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;
orschiro commented 6 years ago

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

hsafe commented 6 years ago

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

amr3k commented 5 years ago

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.

Aokromes commented 4 years ago

this issue is still valid on 1.9.8?

xepozz commented 4 years ago

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

ilya-fedin commented 4 years ago

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?

xepozz commented 4 years ago

Where is it placed?

ilya-fedin commented 4 years ago

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

xepozz commented 4 years ago
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
ilya-fedin commented 4 years ago

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

ilya-fedin commented 4 years ago

@xepozz so what?

xepozz commented 4 years ago

Nothing happened

ilya-fedin commented 4 years ago

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

xepozz commented 4 years ago
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
ilya-fedin commented 4 years ago

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

xepozz commented 4 years ago
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 ```
ilya-fedin commented 4 years ago

Which icon theme are you using?

xepozz commented 4 years ago

image

ilya-fedin commented 4 years ago

Maybe I'm doing something wrong? image

xepozz commented 4 years ago

Was you tried to reboot the system multiple times?

ilya-fedin commented 4 years ago

Was you tried to reboot the system multiple times?

Just tried, works as expected

xepozz commented 4 years ago

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

ilya-fedin commented 4 years ago

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

xepozz commented 4 years ago

image It didn't work

ilya-fedin commented 4 years ago

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

xepozz commented 4 years ago

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

ilya-fedin commented 4 years ago

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

Aokromes commented 4 years ago

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

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.