Summary: | Kio doesn't recognize tg:// URI for Telegram | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Thiago Sueto <herzenschein> |
Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | bizyaev, bugseforuns, kdelibs-bugs-null, mundolibre, nate, nicolas.fella, sitter, spleefer90 |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Thiago Sueto
2021-05-24 15:08:48 UTC
Can confirm. In my setup works, in case you need some testing. Arch Linux + Telegram binary with Firefox or Chromium ¿Is this issue a dup of https://bugs.kde.org/show_bug.cgi?id=439132? Can confirm on Arch Linux, Chromium + Telegram from Arch repos. Operating System: Arch Linux KDE Plasma Version: 5.22.90 KDE Frameworks Version: 5.86.0 Qt Version: 5.15.2 Graphics Platform: X11 What's the output of `XDG_UTILS_DEBUG_LEVEL=3 xdg-mime query default x-scheme-handler/tg`, What's the output of `ktraderclient5 --servicetype Application --constraint "'telegram' ~ Exec"` $XDG_UTILS_DEBUG_LEVEL=3 xdg-mime query default x-scheme-handler/tg Checking /home/stalker/.config/mimeapps.list /usr/bin/xdg-mime: line 323: [: too many arguments /usr/bin/xdg-mime: line 325: [: too many arguments userapp-Telegram Desktop-WOLV40.desktop $ktraderclient5 --servicetype Application --constraint "'telegram' ~ Exec" servicetype is : Application constraint is : 'telegram' ~ Exec got 2 offers. ---- Offer 0 ---- Invalid property Actions StartupWMClass : 'TelegramDesktop' TryExec : 'telegram-desktop' X-GNOME-UsesNotifications : 'TRUE' Type : 'Application' Name : 'Telegram Desktop' Comment : 'Official desktop version of Telegram messaging app' Invalid property GenericName Icon : 'telegram' Exec : 'telegram-desktop -- %u' Terminal : 'FALSE' Invalid property TerminalOptions Invalid property Path ServiceTypes : 'x-scheme-handler/tg - Application' AllowAsDefault : 'TRUE' InitialPreference : '1' Invalid property Library DesktopEntryPath : '/usr/share/applications/telegramdesktop.desktop' DesktopEntryName : 'telegramdesktop' Keywords : 'tg - chat - im - messaging - messenger - sms - tdesktop' FormFactors : '' Categories : 'Chat - Network - InstantMessaging - Qt' ---- Offer 1 ---- NoDisplay : 'TRUE' Type : 'Application' Name : 'Telegram Desktop' Comment : 'Definição personalizada para Telegram Desktop' Invalid property GenericName Invalid property Icon Exec : '/usr/bin/telegram-desktop -workdir /home/stalker/.local/share/TelegramDesktop/ -- %u' Terminal : 'FALSE' Invalid property TerminalOptions Invalid property Path ServiceTypes : 'Application' AllowAsDefault : 'TRUE' InitialPreference : '1' Invalid property Library DesktopEntryPath : '/home/stalker/.local/share/applications/userapp-Telegram Desktop-WOLV40.desktop' DesktopEntryName : 'userapp-telegram desktop-wolv40' Keywords : '' FormFactors : '' Categories : '' Caused by https://bugs.kde.org/show_bug.cgi?id=434362#c9 Couldn't get TG to generate the desktop file there again after removing it nor could I find it in tgdesktop source code to fix it. Close Telegram, delete ~/.local/share/TelegramDesktop/ and restart Telegram, then it will create the desktop file. There's probably an easier way, but this should work. Could be the same root cause as https://bugs.kde.org/show_bug.cgi?id=440062 Check whether Telegram's desktop file has "MimeType=x-scheme-handler/tg;". It does for me and things work fine *** This bug has been marked as a duplicate of bug 439132 *** |