D29728: Fix org.telegram.desktop identification

Aleix Pol Gonzalez <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
apol created this revision.
apol added reviewers: Plasma, KWin.
Herald added a project: KWin.
Herald added a subscriber: kwin.
apol requested review of this revision.

REVISION SUMMARY
  The code we have that adds .desktop at the end of the resource name did not take
  into account that it might be the case that the application ends with .desktop
  like it happens on telegram's desktop client
  
  This patch looks for the file instead of just checking the name to account for
  it. Otherwise the look up happens in KConfig.
  
  Fixes flathub/org.telegram.desktop#27 on github

TEST PLAN
  Tested locally, works.

REPOSITORY
  R108 KWin

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D29728

AFFECTED FILES
  abstract_client.cpp

To: apol, #plasma, #kwin
Cc: kwin, Orage, cacarry, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.