https://bugs.kde.org/show_bug.cgi?id=434362

--- Comment #9 from Martin <spleefe...@gmail.com> ---
Created attachment 143037
  --> https://bugs.kde.org/attachment.cgi?id=143037&action=edit
~/.local/share/applications/userapp-Telegram Desktop-MDCG50.desktop

I think both me and Chandradeep misunderstood the issue.

Us adding quotes around the entry as a workaround simply broke the home desktop
file, and system default was used.

The difference between the desktop entry generated in home and the system one
is simple - system .desktop entry has a defined MimeType:
MimeType=x-scheme-handler/tg;

Thus the issue actually is that kde-open5 ignores the MimeType defined in
mimeapps.list, and it just so happens that both .desktop entries with space on
my system are the ones which have it missing.

Adding MimeType line to the .desktop entry makes it work.

If MimeType is not defined in the .desktop file, it should take the value from
mimeapps.list

Attachment:
~/.local/share/applications/userapp-Telegram Desktop-MDCG50.desktop

Content of ~/.config/mimeapps.list:
[Default Applications]
x-scheme-handler/tg=userapp-Telegram Desktop-MDCG50.desktop

Reproduce:
kde-open5 tg://t.me/archlinuxgroup

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to