TL;DR: package (ebuild) installs desktop file at: /usr/share/applications/telegram-desktop.desktop After telegram was updated by portage, it creates new desktop file at: /home/username/.local/share/applications/telegramdesktop.desktop DE is XFCE 4.12 (i.e. stable version).
https://github.com/telegramdesktop/tdesktop/blob/b74dea86627c2614ccc0c38df5d323359a517ade/Telegram/SourceFiles/platform/linux/specific_linux.cpp#L438-L491
Please do not rename the telegramdesktop.desktop file to ebuild: >newmenu "${WORKDIR}/tdesktop-${PV}"/lib/xdg/telegramdesktop.desktop telegram-desktop.desktop After downloading the Telegram update two shortcuts are created. Running the old version will damage the program settings.
I can reproduce this on 1.1.23 if I do a fresh install by removing ~/.TelegramDesktop or ~/.local/share/TelegramDesktop. Renaming /usr/share/applications/telegram-desktop.desktop to telegramdesktop.desktop fixes the issue. Here is a pull request: https://github.com/gentoo/gentoo/pull/5850 For reference: here is the code that creates the local desktop file: https://github.com/telegramdesktop/tdesktop/blob/aca957595a0938345821994df85437b6fed574e2/Telegram/SourceFiles/platform/linux/specific_linux.cpp#L424
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4e67c90f38db1a56dc68e9c1ef2e6b4ddf41e2d commit f4e67c90f38db1a56dc68e9c1ef2e6b4ddf41e2d Author: Victor Gaydov <victor@enise.org> AuthorDate: 2017-10-03 10:56:03 +0000 Commit: Amy Liffey <amynka@gentoo.org> CommitDate: 2017-10-09 13:33:16 +0000 net-im/telegram-desktop-bin: Don't rename desktop entry Renaming desktop causes conflicts with the ~/.local desktop entry created automatically by telegram desktop. Bug: https://bugs.gentoo.org/620208 .../telegram-desktop-bin-1.1.23-r1.ebuild | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+)}