Bug 1211990

Summary: twinkle needs a better .desktop file for xdg handling of callto: and tel: links
Product: [openSUSE] openSUSE Tumbleweed Reporter: Jeff Stern <jas.61803>
Component: NetworkAssignee: Michal Kubeček <mkubecek>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: proposed twinkle.desktop fixed file

Description Jeff Stern 2023-06-05 03:31:52 UTC
Created attachment 867395 [details]
proposed twinkle.desktop fixed file

After installing twinkle, my OpenSUSE system still does not know about it, when clicking for instance on tel: or callto: links in Thunderbird.

I fixed this on my system with a better /usr/share/applications/twinkle.desktop file.  Instead of this...

=====CURRENTLY PACKAGED====================================
[Desktop Entry]
Categories=Network;Telephony;
Encoding=UTF-8
Name=Twinkle
GenericName=SIP VoIP Phone
Type=Application
Exec=twinkle
Icon=twinkle
===========================================================

...I now have this...

=====FIX===================================================
[Desktop Entry]
Categories=Network;Telephony;
Encoding=UTF-8
Name=Twinkle
GenericName=SIP VoIP Phone
Type=Application
Exec=bash -c '/usr/bin/twinkle --call `echo $0 | sed "s/callto://" | sed "s/tel://"`' %U
Icon=twinkle
Comment=Twinkle Telephony
Categories=Network;Application;
MimeType=x-scheme-handler/tel;x-scheme-handler/callto
X-KDE-Protocols=tel;callto
===========================================================

...and this fixes it. I can now click on a callto: or tel: link in Thunderbird, Firefox, or elsewhere, and it calls up twinkle.

N.B.- Zoom's zoom.desktop file also likes to list itself as handling callto:'s and tel:'s, EVEN THOUGH Zoom cannot handle these (at least, the free addition). So Zoom can still (stupidly) try to compete with twinkle, when it shouldn't because Zoom can't make SIP calls anyway.

I offer the above fix to OpenSUSE for the next packaging of twinkle. Let me know if there is any more information or if I have left anything out. Thank you!