Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620208 - net-im/telegram-desktop-bin creates duplicate desktop file at $HOME on Xfce when file is already present in the system
Summary: net-im/telegram-desktop-bin creates duplicate desktop file at $HOME on Xfce w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Victor Gaydov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-30 15:51 UTC by Gleb
Modified: 2017-10-10 09:34 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gleb 2017-05-30 15:51:21 UTC
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).
Comment 2 Alexander Tratsevskiy 2017-07-04 06:55:51 UTC
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.
Comment 3 Victor Gaydov 2017-10-03 11:03:49 UTC
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
Comment 4 Larry the Git Cow gentoo-dev 2017-10-09 13:36:06 UTC
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(+)}